Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Make your site faster by 89,99% faster.

  1. #1
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default Make your site faster by 89,99% faster.

    Add file called opt.php

    to www folder

    add All your database like

    <?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...

    Enjoy
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    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

  2. The Following 3 Users Say Thank You to subzero For This Useful Post:

    andrew3008 (15-02-11), b0ngma01 (15-02-11), razib (15-02-11)

  3. #2
    Senior Member khan's Avatar
    Join Date
    Dec 2009
    Location
    Bangladesh
    Posts
    700
    Thanks
    33
    Thanked 39 Times in 29 Posts
    Rep Power
    4

    Default

    what will happen if normally opt in every query shot?

  4. #3
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    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

    Got the idea now ?
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    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

  5. #4
    Senior Member khan's Avatar
    Join Date
    Dec 2009
    Location
    Bangladesh
    Posts
    700
    Thanks
    33
    Thanked 39 Times in 29 Posts
    Rep Power
    4

    Default

    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

  6. #5
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    Thats right this can be used for any site

    Also note this does it in a hour time so your tables of more or less

    users online | hours / mins / days

    1 to 10 = day
    1 to 60 = once a day
    1 to 100 = 1 hour base
    1 to 1000 = 1 min base

    So basic your site always OPTIMIZE TABLE it self
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    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

  7. #6
    Senior Member morency's Avatar
    Join Date
    Oct 2008
    Location
    23.8134710 , 44.3247600
    Posts
    481
    Thanks
    26
    Thanked 60 Times in 36 Posts
    Rep Power
    0

    Default

    you tested and get a 89.99% better result ?
    Is just a question ...

    I also optimize db table when I log in to panel.

    You can add a httpd restart every 3-5 days (I dont know if is ok:D)

  8. #7
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    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.
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    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

  9. #8
    Senior Member morency's Avatar
    Join Date
    Oct 2008
    Location
    23.8134710 , 44.3247600
    Posts
    481
    Thanks
    26
    Thanked 60 Times in 36 Posts
    Rep Power
    0

    Default

    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 ?!
    Unamos los corazones,hoy todos somos multicolores!

  10. #9
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    its upto how much bullsh()$*#t users use like

    Inboxing
    Chat
    Forums
    Online

    or having overhead over 1 kb in phpmyadmin
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    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

  11. #10
    Administrator GumSlone's Avatar
    Join Date
    Mar 2005
    Location
    Mars, GumCity
    Posts
    1,495
    Thanks
    125
    Thanked 573 Times in 201 Posts
    Blog Entries
    2
    Rep Power
    10

    Default

    Quote Originally Posted by morency [Only registered and activated users can see links. Click Here To Register...]
    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.
    Advertise your mobile site for FREE with [Only registered and activated users can see links. Click Here To Register...]

    [Only registered and activated users can see links. Click Here To Register...]


Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. if you want logos for your site i make it for you
    By gajendram in forum Design - Templates - Graphics
    Replies: 64
    Last Post: 12-03-13, 19:48
  2. Make site faster!
    By sanju in forum Site / Script testing and error fixing
    Replies: 16
    Last Post: 09-02-11, 09:36
  3. How to make php wml site supportable with all mobile
    By Ponick in forum Site / Script testing and error fixing
    Replies: 3
    Last Post: 30-01-10, 12:26
  4. How to Make A Wap site?
    By bOrN2pwn in forum Tutorials
    Replies: 1
    Last Post: 02-01-10, 06:43
  5. Make Money Frm Ur Site
    By djmal in forum Domains - Hosting - Servers
    Replies: 2
    Last Post: 29-12-07, 01:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19