Is that webserver running ?

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
Pakcik_Kantin
New php-forum User
New php-forum User
Posts: 12
Joined: Sun Jan 19, 2003 8:35 pm
Location: Canteen

Wed Jan 29, 2003 6:13 pm

How am is supposed to know the server(the server that i want to redirect) is currently running or down.
How to check the status of another webserver....

TQ
Image

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Wed Jan 29, 2003 11:41 pm

you will make a fopen("") to some page at that site....
if you will get content server runing, if not - serveir in down...

Pakcik_Kantin
New php-forum User
New php-forum User
Posts: 12
Joined: Sun Jan 19, 2003 8:35 pm
Location: Canteen

Thu Jan 30, 2003 12:39 am

Ok..TQ
Image

Pakcik_Kantin
New php-forum User
New php-forum User
Posts: 12
Joined: Sun Jan 19, 2003 8:35 pm
Location: Canteen

Thu Jan 30, 2003 12:45 am

What if we don't know any file in that server, such as domino server, or it use any extension that we cannot think...
Image

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Thu Jan 30, 2003 2:14 am

fopen("http://domain.com", "r");

Pakcik_Kantin
New php-forum User
New php-forum User
Posts: 12
Joined: Sun Jan 19, 2003 8:35 pm
Location: Canteen

Thu Jan 30, 2003 5:44 am

Thanks man..
Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests