<?php
include("your_config.php");
include("your_core.php");
mysql_query("OPTIMIZE TABLE `users`,`forums`,`chat`") or die("ERROR: DATABASE NOT IN THIS FILE!");
?>
In order
Minute Hour Day Month Weekday
0 * * * *
Now the Command
Corn Job
/usr/local/bin/php /home/USERNAME/public_html/opt.php>/dev/null
Only Change is in red USERNAME to your cpanel username...
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...
_______…
This will do it for you as far lavalair using alot of cpu as for mysql and owners are fooking lazy to OPTIMIZE TABLE THERE SITE to make it run smoothly and best
Get corn job to do it for you lol
You need to select all in phpmyadmin then OPTIMIZE TABLE it copy your OPTIMIZE TABLE `user thing in phpmyadmin will auto give this code then add it how i show you.
Now when corn job OPTIMIZE TABLE your table it will do it to all tables and make your site run faster.
Also it does not hurt to add your email to get updates on corn jobs
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...
_______…
yep.... Gooood. I personally dnt like lava. Not only for lava users, it will work for those who hv lotsa table in their db.
Gonna use it to my next site
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...
_______…
restarting httpd is not a good idea as does nothing to phpmyadmin
My old site had 500 + members online and cpu was 1.92% as user was online using httpd i notice once i had 100 members my cpu was 4.99% or more i don't remember its was old lol days but i did this tick ever time user login or brows the site it will optimize the site.
then my cpu jump to 2.99% and it was using mysql too many times so i set corn jobs
got my self a 1.92% adv speed and now i can defate my scripts with gzip so the site is moving hell alot faster then my old one but its has not had users online yet as it is still in beta mode as i don't yet pay to sell ads for my site like i did before...
Prodigits do the same way but in other way as it is in asp coding.
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...
_______…
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...
_______…
morency wrote:
So , you recommend , for a site ..let's say with 500online users (real ,ofcourse) the cron job to be set to 1m up to 1h ?!
dont do that, because when the mysql runs the optimize/repair query and some other processes will write data to mysql it may break the table structure, make a cron to optimize mysql once a day, at night time when thr traffic is low.
install memcached to cache your database query results (facebook and vkontakte use it too),
use templates engine like smarty,
avoid multiple css/javascript files,
compress css/javascript,
also use nginx reverse proxy for static content (big russian sites like rambler and vkontakte use it),
you can also use mysql table type memory instead of myisam if you want store the data temporarily, eg for online users or chat messages.
this is actually the best way to speed up your site.
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...
_______…
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...
_______…
I moved on other hosting company ... better server 3x times more RAM .. CPU average load is max 0.5% :-|
nginx sux for me because I was unable to configure so I moved my ass in other place .
I made few optimisation in queries + gzip + I blocked Indian users ( lol?! )
Soon i will make the page caching .. just need to up my users with 2-400+ online to have a motivation
PC not blocked for the moment .:)
The only app browsers who send headers there are opera mini and bolt
HTTP_X_BOLT_PHONE_UA
HTTP_X_OPERAMINI_PHONE_UA
I dont know others .
I think only indians users come from t9space ..
ohh , I remember i changed the mysql connection type , from mysql_connect to mysql_pconnect (persistent one) .
I read is good for sites with big traffic .. the persistent connection dont make a new connection each time a PHP page is called up.
morency wrote:
PC not blocked for the moment .:)
The only app browsers who send headers there are opera mini and bolt
HTTP_X_BOLT_PHONE_UA
HTTP_X_OPERAMINI_PHONE_UA
I dont know others .
I think only indians users come from t9space ..
ohh , I remember i changed the mysql connection type , from mysql_connect to mysql_pconnect (persistent one) .
I read is good for sites with big traffic .. the persistent connection dont make a new connection each time a PHP page is called up.
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...
_______…