Page 1 of 1

timeout function

Posted: Thu May 17, 2007 1:18 pm
by bouncer
hi.

Code: Select all

include "$serinc/enc.php?client=$cliente&enc=$enc";
i have this include, that calls a service running on another server.
now, how can i make a sort of timeout function that gives a notice telling that the service is down using this include, any idea ?

thanks in advance

Posted: Thu May 17, 2007 2:40 pm
by RobertGonzalez
Maybe using a return code from that file?

Posted: Thu May 17, 2007 3:41 pm
by feyd
That include shouldn't work, at all. Included (local) files don't accept query strings.

Posted: Fri May 18, 2007 7:22 am
by bouncer
this include works just fine :wink:

ok thanks i will try something else 8)

Posted: Fri May 18, 2007 7:31 am
by Chris Corbyn
Feyd is right. Unless you include with a http:// wrapper that include will NOT work the way you are thinking it does.