PHP coders.. big uploads time out, help needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thumbnailsource
    Confirmed User
    • Feb 2004
    • 154

    #1

    PHP coders.. big uploads time out, help needed

    Hi guys,

    I'm trying to setup a script for uploading large files through PHP, and the script times out and causes the page to load infinitely. The code works flawlessly on smaller files, and i've searched google for a solution with no luck.

    the php.ini has huge settings for:
    max_execution_time
    max_input_time
    post_max_size
    upload_max_filesize

    so I don't know what else to do at this point.. right now i'm testing with a 170mb file and left it running over night. nothing. what gives?
  • leek
    Confirmed User
    • May 2008
    • 342

    #2
    Running Apache? If so, it could be the Apache HTTP timeout.

    Read the comments here.
    Last edited by leek; 01-09-2009, 05:27 AM.

    Comment

    • StuartD
      Sofa King Band
      • Jul 2002
      • 29903

      #3
      I wouldn't even bother. I've had more than my share of headaches dealing with that. PHP, Apache.. hell, browsers themselves were never meant to deal with file uploads of that size.
      That's why FTP was invented.

      I'm not saying it's not possible but for all the headaches you'll give yourself, I suggest finding another way.
      This is me on facebook
      This is me on twitter

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        what about memory_limit variable?
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • thumbnailsource
          Confirmed User
          • Feb 2004
          • 154

          #5
          max_execution_time 3000
          memory_limit 200M

          is all set in my php.ini

          I'm so frustrated with this >_<

          Comment

          • fris
            Too lazy to set a custom title
            • Aug 2002
            • 55679

            #6
            might want to check apaches timeout
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

            Comment

            • sortie
              Confirmed User
              • Mar 2007
              • 7771

              #7
              Originally posted by thumbnailsource
              Hi guys,

              I'm trying to setup a script for uploading large files through PHP, and the script times out and causes the page to load infinitely. The code works flawlessly on smaller files, and i've searched google for a solution with no luck.

              the php.ini has huge settings for:
              max_execution_time
              max_input_time
              post_max_size
              upload_max_filesize

              so I don't know what else to do at this point.. right now i'm testing with a 170mb file and left it running over night. nothing. what gives?
              If you write it in PERL then there is no such thing as a timeout or limit!!!

              If you want a perl script to do this then email me : tube at econfirmpro dot com

              Comment

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

                #8
                How big are the files?
                Don't let greediness blur your vision | You gotta let some shit slide
                icq - 441-456-888

                Comment

                • thumbnailsource
                  Confirmed User
                  • Feb 2004
                  • 154

                  #9
                  Originally posted by grumpy
                  How big are the files?
                  between 1mb and 200mb..

                  the less than 100mb files work great

                  Comment

                  • woj
                    <&(©¿©)&>
                    • Jul 2002
                    • 47882

                    #10
                    Like Stuart said, unless there is a great reason for you to be uploading 100MB files via the web, going the ftp route is the way to go...
                    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

                    • sortie
                      Confirmed User
                      • Mar 2007
                      • 7771

                      #11
                      Originally posted by thumbnailsource
                      Hi guys,

                      I'm trying to setup a script for uploading large files through PHP, and the script times out and causes the page to load infinitely. The code works flawlessly on smaller files, and i've searched google for a solution with no luck.

                      the php.ini has huge settings for:
                      max_execution_time
                      max_input_time
                      post_max_size
                      upload_max_filesize

                      so I don't know what else to do at this point.. right now i'm testing with a 170mb file and left it running over night. nothing. what gives?
                      I just upoaded a 135MB video in 1 hour and 2 minutes using my tube script that
                      I wrote in PERL. There does not appear to be any limit to upload size with perl.
                      You can however set a max upload size.

                      If this was something that several people wanted then I could cut this code out of
                      my tube script and set it up to work with your tube script.

                      How many people need this?

                      Comment

                      Working...