Is there any way to maintain my site speed. Plz post here, hw can i make my site faster to browse?
Make site faster!
Collapse
X
-
No sql, No exec files
No other users
Buy a Virtual private server or go big Dedicated Servers
Never think share hosting will always fast .......
Also fix errorsVisit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
it working both of yours but i liked riderz moving the site abit abit faster lolVisit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
Originally posted by riderzCaching database-driven PHP pages is an excellent idea to improve the load and performance of your script. It’s really not all that difficult to create and retrieve static files of content with the help of our good friend ob_start().
Code:// TOP of your script $cachefile = 'cache/'.basename($_SERVER['SCRIPT_URI']); $cachetime = 120 * 60; // 2 hours // Serve from the cache if it is younger than $cachetime if (file_exists($cachefile) && (time() - $cachetime < filemtime($cachefile))) { include($cachefile); echo "<!-- Cached ".date('jS F Y H:i', filemtime($cachefile))." -->"; exit; } ob_start(); // start the output buffer // Your normal PHP script and HTML content here // BOTTOM of your script $fp = fopen($cachefile, 'w'); // open the cache file for writing fwrite($fp, ob_get_contents()); // save the contents of output buffer to the file fclose($fp); // close the file ob_end_flush(); // Send the output to the browser
But I surprised to see that its not work faster for php-wml.:O
Comment
-
Originally posted by sanju View PostIs there any way to maintain my site speed. Plz post here, hw can i make my site faster to browse?
Names not the sql ok
like
ibf_users
ibf_posts
type all down for me then i will do this simple code for you to use with cornVisit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
1. One good thing your could do would be to use PHP Data Objects (PDO) to interface with MySQL; The php mysql_ functions over 6+ years out of date. PDO is Cross Database meaning you could use different related databases: Cubrid, Microosoft SQL, Firebird, Interbase, IBM, Informix, MySQL, Oracle, ODCB, 4D, SQL-Lite, PostgreSQL using the built in drivers. It also Provides Extra SQL Injection Prevention. Caches frequently used queries that can be re-used without being recompiled by the processor.
2. Limiting the number of Queries that your script needs to do could be another way to speed up page execution time. If there are sections of your script that use multiple MySQL Selects to the same table why not select if all at once.
3. You might also consider caching information that does not change very often. For example User Settings and Profile Information should only need refreshing if the users updates them. You should only need to select this once then update and refres on a new login or profile update.
4. Move your site to a Dedicated Server this way you have your own dedicated space. The more popular your site gets the more it will slow down; This is because more server resources are being used up by other users on the same server your are being hosted on. When you go dedicated there are no other users. This gives you Dedicated RAM, Bandwidth, Space and you can use the resources that you require. There are a lot more advantages to dedicated hosting but that is another discussion.
5. Moving your site to a Virtual Private Server (VPS) this is usually a partion of a dedicated server. You can do pretty much what you can do with a dedicated server but prices can be a lot cheaper.
6. Use of bitwise to store on and off settings (32 settings for each and every digit), Remove un-needed stuff from the database tables. Only use PHP if it is needed. Output Buffering (Can also be stacked), Caching systems, Gzip Compression, Load Balancing, Optimization of Site Graphics, CSS and HTML Markup Validation and optimisation/compression.Last edited by wap2k; 09.02.11, 04:42.
Comment
-
:D. All in all, you have some valid points there.
Usind prepared statements with pdo will speed up your script and also help prevent injection attacks, only if you use them well. Also help with multiple queries.
Gzip compression is also great for speeding up delivery to the browser, but can use resources.
Splitting your tables can help a great deal like, separating users from their settings and profiles.
There's just soooo much, you will learn as you go along, just be willing to learn.Perfection comes at a cost
I accept liberty!
Comment
-
Originally posted by riderzCaching database-driven PHP pages is an excellent idea to improve the load and performance of your script. It’s really not all that difficult to create and retrieve static files of content with the help of our good friend ob_start().
Code:// TOP of your script $cachefile = 'cache/'.basename($_SERVER['SCRIPT_URI']); $cachetime = 120 * 60; // 2 hours // Serve from the cache if it is younger than $cachetime if (file_exists($cachefile) && (time() - $cachetime < filemtime($cachefile))) { include($cachefile); echo "<!-- Cached ".date('jS F Y H:i', filemtime($cachefile))." -->"; exit; } ob_start(); // start the output buffer // Your normal PHP script and HTML content here // BOTTOM of your script $fp = fopen($cachefile, 'w'); // open the cache file for writing fwrite($fp, ob_get_contents()); // save the contents of output buffer to the file fclose($fp); // close the file ob_end_flush(); // Send the output to the browser
Very nice .. but not good ideea for sites who serve ads between content .. :-SUnamos los corazones,hoy todos somos multicolores!
Comment
Comment