[PHP-WIN] Re: Using PHP to reload a page w/variable.

2003-11-19 Thread Tao Z
You can use header() function to redirect You can write a function as: function Redirect($rPath) { header("Location: http://".$_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . $rPath); exit; } $rPath is the relative path to the page that's calling the function. say you are o

Re: [PHP-WIN] Re: PHP not outputting HTML

2003-10-30 Thread Tao Z
you probably need to check your server configuration, then. make sure it knows what to do with php files. Steve Sobol wrote: Tao Z wrote: Seems like it's not sending the correct header. You can try add header("Content-type: text/html"); at the begining of your script. There

Re: [PHP-WIN] Re: PHP not outputting HTML

2003-10-30 Thread Tao Z
Seems like it's not sending the correct header. You can try add header("Content-type: text/html"); at the begining of your script. There is probably an option in the ini file you can change.. hope this helps. Steve Sobol wrote: Norbert GrXttner wrote: The script will work if either a) PHP.INI i