Solved

PHP file upload on shared hosting really slow?  How can I measure/speed up?

Posted on 2007-11-23
8
782 Views
Last Modified: 2008-02-01
Hello everyone, asked a few questions before regarding this topic and got some great answers.  But now I wanna take it a step further.

I have made a file upload form sent to a PHP page to handle the file.  I also used a Perl script to give a progress meter for the upload.

The progress meter shows that for my godaddy shared hosting account the file upload moves at 50 kb/s .  I want to find a way to speed this up.  I know when I download a file from my gmail account, the file dialogue box that pops up downloads at like 350 kb/s .

Is there a way to throttle my godaddy shared hosting bandwidth?  Or should I find a new hosting account?  Is there a measurement I should look for to be able to see how fast I can upload at?

One more question is if 10 people upload a file at the same time at 50 kb/s, should one person be able to upload at like 500 kb/s?  Does that make sense?  What are the methods used to measure server speed?
0
Comment
Question by:parlays
8 Comments
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 50 total points
ID: 20341937
whenever you go for shared hosting account, it is restricted the memory of speed as well as the feature... i would say just confirm with the hosting provider regarding this and try to see what could be done on that...
0
 
LVL 19

Accepted Solution

by:
SteveH_UK earned 250 total points
ID: 20342071
Note that most users have asymmetric bandwidth.  This means that they can download much faster than they can upload.  You should test what your connection is capable of, as it may not be the hoster that is limiting.

Try
http://myspeed.visualware.com/
0
 
LVL 19

Assisted Solution

by:SteveH_UK
SteveH_UK earned 250 total points
ID: 20342074
For myself, the geographic tests are informative as I can get 4Mbps download locally but only 1.3Mbps download extra-continental.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 17

Assisted Solution

by:nplib
nplib earned 100 total points
ID: 20342772
it also could be your ISP, most ISP's have a different download speed from their upload,

for example,

Bell Hishspeed DSL downloads at 3 Mbps, but their upload is at 800 kbps, have you uploaded to anywhere else at a faster rate?
0
 

Author Comment

by:parlays
ID: 20343335
I will do an upload and download check with my server and with other websites.

But aren't there any measurements or ways of testing my hosting server?  Isn't there a factual piece of data they provide that I can easily see to know the server speeds?  Isn't server speed an issue you guys face and have to deal with?
0
 
LVL 19

Assisted Solution

by:SteveH_UK
SteveH_UK earned 250 total points
ID: 20343582
No, in fact this is a complaint that most people have against them.

There are lots to consider as well:

Congestion spots
Contention ratios
Their advertised speeds
Their actual speeds! (sometimes they have contention ratios too!)
All the routers in between
And then your clients.

Yes we have to deal with the issue, but there isn't really much factual data to go on.
0
 

Author Comment

by:parlays
ID: 20343972
Well thanks for the info, dissapointing reality, but thanks for opening my eyes to it.  I'll award points soon, one more thing.  Isn't there another way to measure server speed or performance over a period of time or at once?

I finally got my upload speed when I used a Perl script to give a progress meter for uploads.  Is there something that measures the server speed over a period of time and records it or at least tests it over a 5 minute period or something?
0
 
LVL 21

Assisted Solution

by:nizsmo
nizsmo earned 100 total points
ID: 20344019
http://www.speedtest.net/

You can test your connection speed for your speed limits.
Basically your upload's speed is the visitor's download speed, so it is the opposite.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Query return divisible by 3 3 25
Accessing specific element - DOM PHP HTML 8 34
Ajax and PHP 9 29
Force PDF to open inline as opposed to dowload 16 22
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question