![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
PHP - Max Execution Time - 48 Hours - Problems?
I'm generating stats from huge files. The script I'm running, if I extrapolate the time correctly will need about 44 hours of execution time in php.
I'll set it up in a "screen" session and let it rip, but are there any adverse effects to seeting up a HUGE execution time in php.ini? Given that, does anyone have any tips on how I could parse HUGE files with php and have it use multiple "executions"? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
use "set_time_limit" function to set the time limit in the script itself rather than globally with php.ini...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jan 1995
Posts: 2,417
|
I'd suggest using something other than PHP for this.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: Mar 2003
Posts: 5,074
|
Quote:
__________________
█ joesmut (a) gmail Dot com █ Full Stack Developer |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jan 2004
Location: Cleveland & Atlanta
Posts: 6,706
|
Quote:
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Jan 1995
Posts: 2,417
|
It's a little like painting a house with a fingernail polish brush. You could probably do it, but it's not the right tool for the job!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
48 hours.. wow.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
How big are those files?? 48 hours is insane, we have PHP scripts doing all kinds of things to large logfiles but doesn't take anywhere close to that!!
You sure your code is optimized ?? If it is, then as others said try another language like Python.
__________________
Skype variuscr - Email varius AT gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Location: Location:
Posts: 1,245
|
1. split the file
2. use perl 3. use c 4. or use a quick shell script(what i would do) |
![]() |
![]() ![]() ![]() ![]() ![]() |