hi there all..
i just want to ask some opinion...
just to make sure..
the case is like this:
i normally do my php in my local pc
(PHP 4.3.0 and MYSQL 3.23 all install default)
i tested my script and it work find..
but when i uploaded my script to my hosting..
it went all error..
i noticed my server are only using php ver 4.1.2
this are the following line of code that gives trouble..
header("Location: [url]http://[/url]".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/"."index.php");
and also this one..
mysql_free_result($myresult);
and also this one
session_start();
session_register("name");
$name = "myself";
?>
now.. the error msg are something like this:
Warning: Cannot add header information - headers already sent by (output started at /home/sites/site139/web/php/index.php :10) in /home/sites/site139/web/php/index.php :10 on line 41
weird thing is..
it works fine on my local pc..
can anyone shine some light on this..
thanks in advanced