Help - PHP driving me nuts !!!!!!!!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Antonio
    Too lazy to set a custom title
    • Oct 2001
    • 14136

    #1

    Help - PHP driving me nuts !!!!!!!!!!

    Here is the setup:

    Running windows 7
    Running Zend server
    Running a php script

    The script runs fine for two minutes exactly, after that a message pops up saying:
    "Do you want to save or open this file" and the script stops, the file is the php file in question.

    I did a lot of reading and this happens when apache does not recognize the php extension, however, the script runs fine for exactly two minutes and then the message pops up and the script stops. This is not the max time variable (or whatever it was called) in php.ini since I changed that to 15 minutes.

    Any ideas???

    Help is greatly appreciated
  • IronXavi
    Registered User
    • Oct 2010
    • 4

    #2
    What kind of output does it generate? Which headers does it send to the browser?

    BTW, PHP scripts usually run in less than a second. How can yours run for 2 minutes? If it's some kind of large data processing, it will always be better to run it in CLI PHP under a SSH session.

    Monetize your traffic: $5.00 per 1K clicks
    (sign up via link above - regular rate is $4.20/1K)

    Comment

    • Antonio
      Too lazy to set a custom title
      • Oct 2001
      • 14136

      #3
      OK, fixed it - there was another ini file for Zend, where the timeout was set to 120 seconds. I just increased the timeout and it is working smoothly now. Damn, it took me hours to come up with the brilliant idea to run a search on all files for "120" lol....

      Comment

      • grumpy
        Too lazy to set a custom title
        • Jan 2002
        • 9870

        #4
        at the top of your script set_time_limit(600);
        http://php.net/manual/en/function.set-time-limit.php
        Don't let greediness blur your vision | You gotta let some shit slide
        icq - 441-456-888

        Comment

        • CurrentlySober
          Too lazy to wipe my ass
          • Aug 2002
          • 38943

          #5
          My Partially Hard Penis (PHP) drove me nuts as well..

          You are not alone...

          Viagra is your friend - Dont be ashamed - It happens to us all...


          👁️ 👍️ 💩

          Comment

          • Antonio
            Too lazy to set a custom title
            • Oct 2001
            • 14136

            #6
            Originally posted by grumpy
            at the top of your script set_time_limit(600);
            http://php.net/manual/en/function.set-time-limit.php

            That would be the better approach I guess, but the script is enctypted (not mine, I bought it yestreday), can I still add lines to it or would that mess up the code?

            Thanks

            Comment

            Working...