timeout function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bouncer
Forum Contributor
Posts: 162
Joined: Wed Feb 28, 2007 10:31 am

timeout function

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Maybe using a return code from that file?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

That include shouldn't work, at all. Included (local) files don't accept query strings.
bouncer
Forum Contributor
Posts: 162
Joined: Wed Feb 28, 2007 10:31 am

Post by bouncer »

this include works just fine :wink:

ok thanks i will try something else 8)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Post Reply