Jump to content

itsmeArry

Members
  • Posts

    161
  • Joined

  • Last visited

    Never

Everything posted by itsmeArry

  1. get the details for the packages for the user if the package is enabled use $disabled = "disabled"; else $disabled = ""; this can be done for all the packages.. and then use <input type="button" name="btn1" value="value" <?=$disabled?> >
  2. instead of using mysql_escape_string($_POST['txt_Description']); covert the br to new line... like nl2br(mysql_escape_string($_POST['txt_Description']));
  3. or you can use this which is more safer if a user has two dots in file name.... $arrFileExt = explode(".", $fileName); $total = count($arrFileExt); $strFileExt = $arrFileExt[$arrFileExt[$total - 1];
  4. I just mailed you the files plz check them...
  5. what you need to do is get the User name into a var say "$strUserName" and also get the extension for the file $arrExtensions = array(".doc", ".jpg", ".jpeg", ".gif", ".png"); if( !in_array(strtolower($fileExtension), $arrExtensions)) { echo "Invalid file type"; die(); } $strFileName = $strUserName . "." . $strFileExt; // Make the destination Path $strDestFile = $strpDestPath . "/" . $strFileName; if ( move_uploaded_file ($_FILES['resume']['tmp_name'] , $strDestFile ) ) { chmod($strDestFile,0755); } else { echo "$strDestFile : Failed to open stream : Permission denied."; die(); } hope this will help you.....
  6. A better approach what I think would br serialize it and then unserialize it on next paga $strRetrievals = serialize($retrievals); <a href="whatever.php?retrievals=<?php print $strRetrievals; ?> and on next page you can use $strRetrievals = $_GET['retrievals']; $arrRetrievals = unserialize($strRetrievals); hope you find it useful for future use.....
  7. instead of using $file_name = stripslashes($_FILES['image']['name']); try this $file_name = $_FILES['image']['tmp_name'];
  8. intead of using if ($field != $not_required) use if ( !in_array( $field, $not_required ) )
  9. I used the same code and after some alterations it worked fine for me. if you want I can send you the code for that on your mail id..
  10. I viewed it in IE7 and firefox. I was able to login and content of both thepages is same. I tried to navigate to oher pages as well and it seems working in both. However I got a javascript errors both in IE as well as FF. IE: usr.value is null or not an object. FF: 1. Error: Expected end of value for property but found ','. Error in parsing value for property 'font-weight'. Declaration dropped. Source File: http://www.gangsterterritory.com/login.php Line: 123 2. Error: usr has no properties Source File: http://www.gangsterterritory.com/login.php Line: 86 3. Error: Expected end of value for property but found ':'. Error in parsing value for property 'font-family'. Declaration dropped. Source File: http://www.gangsterterritory.com/loggedin.php Line: 10 4.
  11. I am not recieving bounced emails. Here is the situation: I have 2 dedicated servers. If I send mail from 2nd server I am recieving bounced mail at the bounced@domain1.com, but when I send mail from the 1st server I am not recieving mails at bounced@domain2.com. I have given the bounced address in the mail header. I am using PHP 4.3 and Exim is being used on 2nd server and sendmail on Server1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.