php sql cpu?
Moderator: General Moderators
-
FireElement
- Forum Commoner
- Posts: 86
- Joined: Wed Oct 17, 2007 6:03 pm
php sql cpu?
Hi,
I went to my mums house yesterday and she has well a slow computer she has rubish cpu and not much ram. I noticed when I tried to load two pages that I know have lot of php code and sql code it was failing to load them the page would end up just been grey so I checked source and it was like half the page had loaded.
I was wondering if there is away to make the page load slower with lots of code for slow computers. To be honest I not sure where to look, well mainly like an a** I presummed that if the connection was fast the php would load fine. Obviously they need a fast processor aswel in some cases.
Can anyone help me understand whats going wrong so I can fix it?
Thanks
I went to my mums house yesterday and she has well a slow computer she has rubish cpu and not much ram. I noticed when I tried to load two pages that I know have lot of php code and sql code it was failing to load them the page would end up just been grey so I checked source and it was like half the page had loaded.
I was wondering if there is away to make the page load slower with lots of code for slow computers. To be honest I not sure where to look, well mainly like an a** I presummed that if the connection was fast the php would load fine. Obviously they need a fast processor aswel in some cases.
Can anyone help me understand whats going wrong so I can fix it?
Thanks
It's likely dependent on the amount of HTML being output.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
-
FireElement
- Forum Commoner
- Posts: 86
- Joined: Wed Oct 17, 2007 6:03 pm
Alright I looked up ob_flush. Basically I was not using a buffer. Do you think if I use a buffer, this will make the page load everytime?
http://uk.php.net/ob_start
http://uk.php.net/ob_start
alas, no you definately do not want to turn it on.. you do need to check that implicit_flush is not set to 1/true in php.ini though, and that's what I meant the first time but didn't make myself quite clear enough!
http://uk.php.net/manual/en/ref.outcontrol.php
http://uk.php.net/manual/en/ref.outcontrol.php
No. In the end, the end computer still has to display the same amount of output.
PHP is on a remote server (unless you are talking about localhost issues). It doesn't matter that the end computer is slow. The page will get generated on the server as fast as it would on any computer you're using to access it. It's up to the end computer to handle the output.
As far as your moms computer goes, it doesn't know if the HTML was generated by PHP or if it's a static HTML page.
PHP is on a remote server (unless you are talking about localhost issues). It doesn't matter that the end computer is slow. The page will get generated on the server as fast as it would on any computer you're using to access it. It's up to the end computer to handle the output.
As far as your moms computer goes, it doesn't know if the HTML was generated by PHP or if it's a static HTML page.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
-
FireElement
- Forum Commoner
- Posts: 86
- Joined: Wed Oct 17, 2007 6:03 pm
-
FireElement
- Forum Commoner
- Posts: 86
- Joined: Wed Oct 17, 2007 6:03 pm
Check out these pages and see what you think.
http://www.kenjy.com/search/
http://www.kenjy.com/share-tips/
http://www.kenjy.com/search/
http://www.kenjy.com/share-tips/
-
FireElement
- Forum Commoner
- Posts: 86
- Joined: Wed Oct 17, 2007 6:03 pm
Yeah, javascript would certainly hinder the ability of a lesser-able computer to display/interact with the pages being rendered.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.