Forum Moderators: coopster
>> Does the "!" mean not equal?
!= means "not equal to". The ! before the variable means "not". So if you have something like if(!isset($var))... you are saying that if isset returns false or, if the isset does NOT return true, proceed with the condition. Your example is similar. If the variable is null/empty/false/zero, do something...
function mirrorfile($url) {
global $sendfile;
if (!$sendfile['local']) $sendfile['local'] = basename($url);
// $log = "<p class=\"info\">Mirroring file <b>$url</b> ...</p>";
print $log;
$msg = '';
I'm glad it works but not so glad that I don't understand why it could make a difference. Truthfully, that's the only thing I changed.
An Error Occured<a href="http://www.example.com/Uploadform.html"> <--TRY AGAIN</a><br>Or Use Your Personal Email.
I truncated it above for simplicity. Could including a link in my error message cause my script to go awry?
Well, if you do not properly escape the quotes correctly then yes, it can.
[edited by: eelixduppy at 11:00 pm (utc) on April 28, 2007]
Echoing something to the browser will not affect the mail headers. However, if your mail headers aren't correct, then that may result in failure to send the email.
I'd revert back to the backup that you have if that works as you want.