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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-19-2004, 06:54 PM   #1
Dusen
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"?
__________________
Penis Pill Sponsor List and Reviews:
http://www.pillsponsors.com
Dusen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 07:02 PM   #2
woj
<&(©¿©)&>
 
woj's Avatar
 
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 07:12 PM   #3
KC
Confirmed User
 
Industry Role:
Join Date: Jan 1995
Posts: 2,417
I'd suggest using something other than PHP for this.
__________________

Jupiter Hosting, Inc.
Vice President, Business Development
kc (AT) jupiterhosting.com
KC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 07:13 PM   #4
fr8
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Posts: 5,074
Quote:
Originally posted by KC
I'd suggest using something other than PHP for this.
Yes I dont see how php would be the best for this.
__________________
joesmut (a) gmail Dot com
Full Stack Developer
fr8 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 07:14 PM   #5
AndrewKanuck
Confirmed User
 
Join Date: Jan 2004
Location: Cleveland & Atlanta
Posts: 6,706
Quote:
Originally posted by KC
I'd suggest using something other than PHP for this.
Word - who in gods name would parse that large of a file with PHP; my god man.
__________________
AndrewKanuck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 07:18 PM   #6
KC
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!
__________________

Jupiter Hosting, Inc.
Vice President, Business Development
kc (AT) jupiterhosting.com
KC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 07:24 PM   #7
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
48 hours.. wow.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 07:47 PM   #8
Varius
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
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2004, 07:53 PM   #9
Fukeneh
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)
Fukeneh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.