PDA

View Full Version : safe_mode = off / Anyy possibility to pause script?


ultradna
12-20-2003, 05:12 PM
My server has "safe_mode=off" an I got an error message that the procedure takes too long - longer than 30 sec.

My question is, if it is possible that the script is pausing, when indexing a site, so that I don't get the error message and that the server don't abort indexing?

So that the timeout is resetted and then the script can go on.

I don't know if it is much work, but if it isn't hard, could someone say me how to change the script?

Thank you very much!

Charter
12-20-2003, 06:23 PM
Hi. Are you using IIS? If so, this (http://www.murraymoffatt.com/software-problem-0002.html) page might help.

ultradna
12-21-2003, 01:50 AM
Hello,

I'm using a Linux server with Apache httpd 1.3.27 and PHP version 4.3.0 without root access - so I'm not able to edit the php.ini file.

And everything has to do with safe mode is in this configuration :
( first value is local and second is master )

safe_mode "Off" "Off"
safe_mode_exec_dir "/usr/phpbin/" " /usr/phpbin/"
safe_mode_gid "Off" "Off"
safe_mode_include_dir "no value" "no value"

When the sipder is working too long, then I get :

Fatal error: Maximum execution time of 30 seconds exceeded in /xxx/xxx/xxx/admin/robot_functions.php on line 988

But I don't understand when php starts to count the timeout, because this are the last URLs that are spidered before timeout :

124:http://www.jdshfjsdhfljsdhflsdlf.cc/something.htm
(Zeit : 00:01:51)

125:http://www.jdshfjsdhfljsdhflsdlf.cc/something2.htm
(Zeit : 00:01:52)

126:http://www.jdshfjsdhfljsdhflsdlf.cc/something3.htm
(Zeit : 00:01:52)

So ... there are 1:52 mins !! not 30 sec.

Is there any way, I read it here (bit with no answer), that the spider is spidering - pausing - and the continues with spidering so that it doesn't get the timeout?

Thanx

Charter
12-21-2003, 12:01 PM
Originally posted by ultradna
...
I'm using a Linux server with Apache httpd 1.3.27 and PHP version 4.3.0 without root access - so I'm not able to edit the php.ini file.

And everything has to do with safe mode is in this configuration :
( first value is local and second is master )

safe_mode "Off" "Off"
safe_mode_exec_dir "/usr/phpbin/" " /usr/phpbin/"
safe_mode_gid "Off" "Off"
safe_mode_include_dir "no value" "no value"

When the sipder is working too long, then I get :

Fatal error: Maximum execution time of 30 seconds exceeded in /xxx/xxx/xxx/admin/robot_functions.php on line 988
...

Originally posted by ultradna
...
my provider said that they won't turn safe_mod off so installed phpdig on my computer with windows 2000, apache, php and sql.
...


Hi. Is safe mode on or off? It seemed it was off, but now it seems it is on. If on, set_time_limit has no effect. Perhaps this (http://www.phpdig.net/showthread.php?threadid=221) thread will help.