PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 12th, 2004, 05:48 PM
galbreathma galbreathma is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rosslyn, VA, USA
Posts: 7 galbreathma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
timeout variable in php.ini

On Windoze 2000 with PHP 4.3.4, I am trying to parse a series of 512 XML files dynamically downloading from the Library of Congress. The problem is, the process times out after about 30 seconds, no matter how much I increase the timeout value from the default of 30. Is there a way to set timeout to infinity? Am I even in the right ballpark?

tia,
Mark

Reply With Quote
  #2  
Old March 13th, 2004, 01:23 AM
mugane mugane is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Charlottesville, VA USA
Posts: 425 mugane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mugane Send a message via Yahoo to mugane
RE: timeout variable in php.ini

You know, it shouldn't time out if you increase it correctly. Why don't you post the lines of your php.ini that you changed, and we can verify that. Otherwise, a way to circumvent the problem that I used when I was working with weather data is to have the page reload after each file, using the header("location:"); function. You can pass the current file using a URL variable, like so:
php Code:
Original - php Code
  1. <?
  2. $i=$_GET["index"];
  3. //do processing of file $i;
  4. $i++;
  5. header("location: thisfile.php?index=$i");
  6. ?>

Run the script by using the url yourhost.com/thisfile.php?index=0

P

Reply With Quote
  #3  
Old March 21st, 2004, 02:16 PM
Seadoo Seadoo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 133 Seadoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: timeout variable in php.ini

With set_time_limit(0) you set the time limit to infinity.
But be carefull, your script may run forever

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > timeout variable in php.ini


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway