How to SPEED up PHP upload script??

Discussion in 'PHP' started by Frankenfine, Dec 14, 2009.

  1. #1
    I have a simple PHP upload script that uploads movies from computer to server.
    It takes FOREVER to upload!!!!

    I can upload files to the server with cpanel quickly, but when I use the script on my site, it is beyond slow.

    Any PHP or server tips?

    Thank you, Gloria
     
    Frankenfine, Dec 14, 2009 IP
  2. izzatz13

    izzatz13 Active Member

    Messages:
    541
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #2
    What kind of files you upload through the cpanel? Is it same size as the movie files you upload through the script? You should know that first.

    Anyway there's nothing much to do with the script. Which script you use? Is it custom? :)
     
    izzatz13, Dec 14, 2009 IP
  3. Frankenfine

    Frankenfine Peon

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    They are FLV files. Yes, I also notice they are slow to upload with cpanel.
    Other files, such as swf and jpg upload quite fast.

    Any ideas?
     
    Frankenfine, Dec 14, 2009 IP
  4. MartiCode

    MartiCode Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Video files are huge and hence take a huge time to upload. It's most likely not the script that is slow, just the line...
     
    MartiCode, Dec 14, 2009 IP
  5. Frankenfine

    Frankenfine Peon

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The files are 2 to 5 megs each. But take 2-5 minutes to upload. Is this normal?
     
    Frankenfine, Dec 14, 2009 IP
  6. yoes_san

    yoes_san Peon

    Messages:
    443
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I think it depends on your connection speed, 5mbs takes only a minute for me though.

    It also can be that your upload script have some bugs(in file's validation?) that slow down the speed.
     
    yoes_san, Dec 14, 2009 IP
  7. taminder

    taminder Peon

    Messages:
    581
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    it depends on the connection speed of the client and server.

    check in your config settings if there is a limit set on bandwidth per client.
     
    taminder, Dec 15, 2009 IP