Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-02-2010, 03:04 AM need help please
ZoC
Skilled Talker

Posts: 68
Trades: 0
Hello there, is anyway to i can see why my website is slow ? some scripts php to show me what php script is using to much ? right now my website is geting slow 8 secounds to load ... but hope someone can give me some suggestion how to see from what php script is come the problem ...
ZoC is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-02-2010, 03:37 AM Re: need help please
Gakoyu Ojima's Avatar
Skilled Talker

Posts: 59
Location: Netherlands.
Trades: 0
I suggest you contact your host about it, or check if there's a debug script. There you should be able to see which scripts take a lot of time to process.
__________________
$gocore = new gakoyucore();
$con = mysql_connect($gocore->server, $gocore->username, $gocore->password) or die(mysql_error());
Gakoyu Ojima is offline
Reply With Quote
View Public Profile
 
Old 12-02-2010, 05:26 AM Re: need help please
vectorialpx's Avatar
Extreme Talker

Posts: 249
Name: octavian
Location: Bucharest
Trades: 0
You can check if you have any external request [check that another site] because this can slow your website too.

And, if you don't have... just add a die('here'); after some lines (important ones) so you can figure it out where is the problem. Start with index and check all require blocks with this flag. I hope you got the idea.
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 12-02-2010, 10:24 AM Re: need help please
Junior Talker

Posts: 2
Name: Jill Margo
Trades: 0
Have you checked on your host already?
__________________
Get a
Please login or register to view this content. Registration is FREE
with mobile broadband. Compare free laptop deals and find the deal that suits your needs best.
jjclark10 is offline
Reply With Quote
View Public Profile
 
Old 12-02-2010, 10:40 AM Re: need help please
Skilled Talker

Posts: 76
Name: Nick Cousins
Location: Northern Ireland
Trades: 0
There are a number of processes which occur when you request a page - it's important to check which one is causing the delay.

1. DNS Lookup - your domain is being looked up by your browser to get it's IP
2. Connecting - your browser connects to your server and asks for a session
3. Sending - when your server agrees and sets up a connection - your browser sends its request
4. Waiting - your browser then waits for the server to respond
5. Receiving - when the server has performed any operations it needs to (such as PHP pre-processing) it starts sending data to the browser

Check which of these points is causing the hold-up in case you go off on a wild goose chase. Install the Firebug plugin into Firefox and use the NET tab to check.

If the delay is in the "waiting" part, then most likely PHP is to blame.

If it is prior to that it could be a load issue on the server, and if it's after that it could be the network connection.

I found that one thing that causes unexpected sudden slow down of a server can be that the network card is configured incorrectly and cannot perform "duplex" operations properly.

Are other scripts running OK? If so then it points to perhaps an infinite loop, or some other unsatisfiable condition in your script, or perhaps simply that the script is using up too much memory.

I know I'm likely to get flamed for suggesting such a thing, but I installed Joomla on my server and had to go make tea while pages loaded. So look at what software you have installed - Lots of MySQL requests can really bog down a website.
__________________
Join
Please login or register to view this content. Registration is FREE


Knowledge is power. Never underestimate the power of stupid people in large numbers.

HandCoder is offline
Reply With Quote
View Public Profile Visit HandCoder's homepage!
 
Reply     « Reply to need help please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36615 seconds with 12 queries