| | |
Site is taking a long long time to load.
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Do you have any js-based analytics or advertising etc.? These can really slow down sites - I had to remove some of them from mine.
Is the slow load experienced on every computer or on every browser?
Have you pruned the page to various stages of undress to see which component is causing the delay? As prev. mentioned,loops (especially nested loops) may be the cause of your woes.
Do you have hundreds of people viewing your site at any given time? Is your server up to the task?
You could time certain procedures with microtime(), to give you a list:
Is the slow load experienced on every computer or on every browser?
Have you pruned the page to various stages of undress to see which component is causing the delay? As prev. mentioned,loops (especially nested loops) may be the cause of your woes.
Do you have hundreds of people viewing your site at any given time? Is your server up to the task?
You could time certain procedures with microtime(), to give you a list:
PHP Syntax (Toggle Plain Text)
$start = microtime(true); //YOUR PROCEDURE e.g. loop $end = microtime(true); $elapsed = $end - $start; echo "Procedure 1 = {$elapsed} seconds"; //repeat as necessary
Last edited by ardav; Jun 16th, 2009 at 12:47 pm. Reason: added bit of code - microtime()
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
What system is the website running on?
You can use the following commands to find this out:
If the proccessor returns something silly like 1 then that might be an issue (these things can take allot of proccessing) but this wouldn't be the main issue.
Does your site finish loading or does it take soo long you give up? If this is the case AND the site software is Windows IIS then it could mean you need to configure IIS to accept PHP extensions.
You can use the following commands to find this out:
php Syntax (Toggle Plain Text)
echo "Site Software: ".$_SERVER["SERVER_SOFTWARE"]."<br />"; echo "Proccessors: ".$_SERVER["NUMBER_OF_PROCESSORS"];
If the proccessor returns something silly like 1 then that might be an issue (these things can take allot of proccessing) but this wouldn't be the main issue.
Does your site finish loading or does it take soo long you give up? If this is the case AND the site software is Windows IIS then it could mean you need to configure IIS to accept PHP extensions.
Posts should be like mini-skirts, long enough to cover enough, but not too long that you cover too much.
My Liveperson: http://liveperson.com/josh-connerty/
My Liveperson: http://liveperson.com/josh-connerty/
•
•
Join Date: Apr 2009
Posts: 2
Reputation:
Solved Threads: 0
Be sure that all images, style .css files and .js files load fast. Add some code to your index.php file to see <URL SNIPPED>server-side page generation time. Loading time, data transferring speed and page generation time are different things.
Last edited by peter_budo; Jun 17th, 2009 at 4:11 am. Reason: Keep It Spam Free - Do not spam, advertise, plug your website, or engage in any other type of self promotion.
Your .htaccess file may still be there if you've just uploaded another file called htaccess. I was thinking of renaming it to, say, htaccess.txt in situ, i.e. on the server in your FTP view. I don't know enough about htaccess to be able to advise you, but it seems like the obvious culprit if you've got nothing else in your files that could account for the slow loads. Have you contacted your host to ask them for advice? It could be that you're on a shared host with some naughty people who are serving mp3s and videos and slowing everybody down.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
![]() |
Similar Threads
- can long long stor 12 dig num?ifno, without array how 2 do? (C++)
- % and <= operation with unsigned long long (C)
- Converting a Long Long to a Char Buff (C)
- Long long, unsigned, C & C++ issues (C++)
- Bumbling highlights square. (DaniWeb Community Feedback)
- format specifier for long long int (C)
- Urgent: Site takes higher loading time..... (PHP)
Other Threads in the PHP Forum
- Previous Thread: Modify search with text box
- Next Thread: $_POST vs. $_GET
| Thread Tools | Search this Thread |
# 5.2.10 action address apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display dissertation domain dynamic echo echo$_get[x]changingitintovariable... email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image images include insert ip javascript joomla legislation limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop open paypal pdf persist php popup problem query radio random record recursion remote script search server sessions sms sockets source space sql syntax system table tutorial update upload url validator variable video web youtube






