RE: [PHP-WIN] help with header on UNIX server
| From: | HKG) | Date: | Tue, 18 Nov 2003 14:02:38 +0000 |
| Subject: | RE: [PHP-WIN] help with header on UNIX server | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-22130@lists.php.net to get a copy of this message | ||
The unix box webserver is probaly set to not to allow
implict fetch with the GET method. Try use this:
$<your_local_variable> = $_GET[<GET_varibable_name>];
-----Original Message-----
From: Lawrence
To: php-windows@lists.php.net
Sent: 2003-11-18 14:48
Subject: [PHP-WIN] help with header on UNIX server
I have two page header.htm and header.php
This is header.htm
<body>
<p><a href="header.php?xp=1">Link Google</a></p>
<p><a href="header.php?xp=2">Link Yahoo</a></p>
<p><a href="header.php?xp=3">Link Hotmail </a></p>
<p><a href="header.php?xp=4">Link Php.net</a></p>
</body>
This is header.php
<?
if ($xp==1)
header("location : www.google.com") ;
elseif ($xp==2)
header("location : www.yahoo.com") ;
elseif ($xp==3)
header("location : www.hotmail.com") ;
elseif ($xp==4)
header("location : www.php.net") ;
?>
<html>
<body></body>
</html>
When I run on my computer , IIS and windows xp , they run well , but
when I
upload them on UNIX server , they run nothing , they don't redirect , I
ask
admin why he anwsers he doesn't know , anyone can help me , thank you .
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php