PHP - Max Execution Time - 48 Hours - Problems?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dusen
    Confirmed User
    • Aug 2002
    • 2251

    #1

    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
  • woj
    <&(©¿©)&>
    • Jul 2002
    • 47882

    #2
    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

    Comment

    • KC
      Confirmed User
      • Jan 1995
      • 2417

      #3
      I'd suggest using something other than PHP for this.

      Jupiter Hosting, Inc.
      Vice President, Business Development
      kc (AT) jupiterhosting.com

      Comment

      • fr8
        Confirmed User
        • Mar 2003
        • 5074

        #4
        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

        Comment

        • egonetworks
          Confirmed User
          • Jan 2004
          • 6706

          #5
          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.

          Comment

          • KC
            Confirmed User
            • Jan 1995
            • 2417

            #6
            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

            Comment

            • Brujah
              Beer Money Baron
              • Jan 2001
              • 22157

              #7
              48 hours.. wow.

              Comment

              • Varius
                Confirmed User
                • Jun 2004
                • 6890

                #8
                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

                Comment

                • Fukeneh
                  Confirmed User
                  • Mar 2004
                  • 1245

                  #9
                  1. split the file

                  2. use perl

                  3. use c

                  4. or use a quick shell script(what i would do)

                  Comment

                  Working...