PHP - Guru needed !Redirect page on remote web host when local server is offline
Posted 06 August 2006 - 06:35 AM
I have tried the following script but when my local server is offline it fails to redirect to a page on my website which lets the user know the server is offline .
if (! $sock = @fsockopen('localserver', 80, $num, $error, 2))
header("location: http://some_local_se...ct=0.46875,0.59 375,0.53125,0.65625&wid=300&hei=300&lng=en_US&enab lePastMaxZoom=OFF&page=simple/simple2.htm&obj=uv,1.0&cmd=reset");
P.S. It redirects to the first header okay .
Posted 06 August 2006 - 06:49 AM
Posted 06 August 2006 - 07:07 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users