ColdDayInHell Posted April 10, 2007 Share Posted April 10, 2007 hi ..i'm kinda noob to PHP i dont know wut's really wrong with this code but i keep getting this parse error Warning: Unexpected character in input: '\' (ASCII=92) state=1 in line 13 Parse error: parse error in line 13 and this is line 17: $headers .= "From: \"".$fromname."\" <".$fromaddress.">\n"; and that' the whole code down there I really will appreciate ur Help>>>> <?PHP $remote_addr = getenv(’REMOTE_ADDR’); $toaddress = "[email protected]"; $subject = "IP tracket"; $message = "IP: $remote_addr"; $fromname = "profit42.com"; $fromaddress = "[email protected]"; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\n"; $headers .= "X-Priority: 3\n"; $headers .= "X-MSMail-Priority: Normal\n"; $headers .= "X-Mailer: php\n”; $headers .= "From: \"".$fromname."\" <".$fromaddress.">\n"; mail($toaddress, $subject, $message, $headers); ?> <img src"http://www.blabla.com/any.JPG"> Link to comment https://forums.phpfreaks.com/topic/46452-parse-error-problem/ Share on other sites More sharing options...
kenrbnsn Posted April 10, 2007 Share Posted April 10, 2007 This line: <?php $headers .= "X-Mailer: php\n”; ?> contains a "smart quote" ” instead of a real double quote. Ken Link to comment https://forums.phpfreaks.com/topic/46452-parse-error-problem/#findComment-225980 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.