PHP-FTP Timeout Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Riasat
    Senior Member
    • Aug 2006
    • 4013

    PHP-FTP Timeout Issue

    I'm trying to put/get large files using PHP-FTP and php max_execution_time is 15sec. Moreover, php safe mode is enabled. This is obviously resulting in a timeout.
    Does anyone know any work around for this except disabling safe mode/increasing max_execution_time?

    many thanks in advance!
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Increase the max_execution_time setting to at least 180. Then if you still have this problem keep increasing it until you no longer get the timeouts.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • Riasat
      Senior Member
      • Aug 2006
      • 4013

      #3
      Originally posted by Steve Machol
      Increase the max_execution_time setting to at least 180. Then if you still have this problem keep increasing it until you no longer get the timeouts.
      Thanks Steve. But you can't do that in safe_mode and access to php.ini is not available in this case. Trying to change it using htaccess gives error 500 (cause of safe_mode).
      I guess it is just impossible other than complex file split/transfer/rejoin etc.

      Sorry for the late reply.

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        I have never heard of such a restriction before. What do you base that on?
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • Riasat
          Senior Member
          • Aug 2006
          • 4013

          #5
          Originally posted by Steve Machol
          I have never heard of such a restriction before. What do you base that on?
          A client was simulating those "****ty shared hostings" where you get safe mode php and php.ini is out of your reach. He wanted the mod to work on those places...

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...