Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: 30 sec timeout problem - set_time_limit - Won't work


Message #1 by "mikko tuomisto" <mikkotuomisto53@h...> on Sat, 21 Sep 2002 14:22:38
-----------

Sorry that I ask this same question again, but

set_time_limit(0) do nothing.
set_time_limit(3600) do nothing also.

30 seconds and 'The page cannot be diplayed'

PHP.net manual says:
>set_time_limit() has no effect when PHP is running in safe mode. 
I don't even use safe mode, so set_time_limit() should work.

-----------



> -----Original Message-----
> From: mikko tuomisto [mailto:mikkotuomisto53@h...]
> Sent: 21 September 2002 12:18
> To: professional php
> Subject: [pro_php] 30 sec timeout problem
> 
> 
> 30 sec timeout problem! 
> 
> The short version of the problem is, I'm attempting a http 
> file upload 
> using php (a rather large one, 10M+) and I'm getting the 
> dreaded "This 
> page cannot be displayed.." 
> 
> This occurs 30 seconds into the upload and the upload aborts. Smaller 
> files (requiring less than 30 seconds) upload without incident. 
> 
> I'm running Apache/1.3.26 php4 on a Linux/Debian server. I've 
> increased 
> every 
> value in the php.ini file that I though might help the 
> situation. I've 
> set: 
> 
> PHP.ini: 
> 
> pfpro.defaulttimeout = 30000 
> max_execution_time = 30000 
> memory_limit = 18M (up from the default  
> file_uploads = On 
> upload_max_filesize = 100M 
> 
> 
> And what I have changed in httpd.conf 
> 
> HTTPD.CONF: 
> 
> # Timeout: The number of seconds before receives and sends time out. 
> # 
> Timeout 300 
> 
> 
> 
> I have found following from mailing lists but they don't help 
> me. So can 
> someone find even something I can try? 
> 
> 
> >Maybe the problem is that you have PHP installed as a 
> module, but you 
> >haven't restarted apache since changing the php.ini values...? 
> > 
> >1. 
> > 
> ><input type="hidden" name="MAX_FILE_SIZE" value="2000000"> 
> > 
> > 
> >2. and the <form>-heading: 
> ><form enctype="multipart/form-data" method="post" 
> action="myAction.html"> 
> > 
> 
> I have noticed these... 
> 
> 
> >First, see if clients use PROXY SERVER (LAN) ... if yes ... 
> no matter you 
> set your Apache or your code ... it won't work. 
> >PROXY SERVER can limit: 
> >1. Sum of bytes transferred thru him 
> >2. Time before an open connection is forced to close 
> 
> NO proxy. I dont't use. 
> 
> >Is it local server (the server is belong to you)? If yes, go to the 
> server, open it's browser, type http://127.0.0.1 or 
http://localhost, then 
upload any file up to 2MB .. then see if file is uploaded succesfully. 

Won't work either. 


I got also this answer to my problem:

>The problem isn't releated to PHP here, it's just that it takes too much 
time and the browser itself actualy time out. The solution would either be 
a HTTP header or a client side language to change the timeout value. 

I tried all kind of headers but no result. So if it's header problem and 
you have something in your mind that could help. Please send it and I will 
try.




Any help would be appreciated very very very greatly. 



/Mikko Tuomisto
---
Change your mail options at http://p2p.wrox.com/manager.asp or 
to unsubscribe send a blank email to 


  Return to Index