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
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
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