![]() |
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"? |
use "set_time_limit" function to set the time limit in the script itself rather than globally with php.ini...
|
I'd suggest using something other than PHP for this.
|
Quote:
|
Quote:
|
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!
|
48 hours.. wow.
|
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. |
1. split the file
2. use perl 3. use c 4. or use a quick shell script(what i would do) |
All times are GMT -7. The time now is 09:27 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123