/    Sign up×
Community /Pin to ProfileBookmark

CGI Timeout error

Hi I wonder if anyone can help,

I have recently been getting the error CGI Timeout……
this is due to a large script(PHP- Mysql) that requests num_rows from my arrays giving a value if one is present or ‘0’ if nil. I tried setting the largest set_time_limit() but this has no effect. I checked with my web hosting company, this is their reply.

[quote]

In order to ensure server reliability, the timeout on Our servers have been set to 10 seconds for CGI scripts, and 15 seconds for ASP scripts.

If you continue to experience difficulties, you should review the script and try to configure it to run within the above parameters.

[/quote]

has anyone got any suggestions how to deal with this issue? I do hope to still use the seach and so perhaps I need a timed search which rexecutes if not completed, not sure if I am going about it the right way.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@roscorauthorJul 09.2007 — Just using this at the moment, there must be a better way as I dont think this will error out when a CGI timeout occurs
[code=php]$query="SELECT * FROM table WHERE county IN ('$countiesArray[$item]')" ;
$result=mysql_query($query);
if (!$result) {
die('Could not connect to database, please refresh your browser:');
}[/code]
×

Success!

Help @roscor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...