[PHP-MSSQL] Need help..

Results 1 to 5 of 5
  1. #1
    Sorcerer Supreme Sv@ike is offline
    Member +Rank
    Jun 2006 Join Date
    LithuaniaLocation
    351Posts

    Question [PHP-MSSQL] Need help..

    hello,
    i need some help/advices withy rankings in site.
    I inserted rankings in my site, and to get info site every time connects to mssql, that makes server laggy a little bit.. Maby i can set some settings in php or apache to make less connections to database? The best thning it would be script that would connect to mssql every 5 minutes etc and would update info in site.. anyone got idea how to make this?

    thx


  2. #2
    Grand Master FragFrog is offline
    Grand MasterRank
    Aug 2004 Join Date
    The NetherlandsLocation
    5,629Posts
    Use smarty and turn on caching. Smarty : Template Engine

    Or write some damn decent functions, a simple select query shouldn't hog your resources.

  3. #3
    Sorcerer Supreme Sv@ike is offline
    Member +Rank
    Jun 2006 Join Date
    LithuaniaLocation
    351Posts
    how to use smarty chaching corectly?

    just enable:

    Code:
    var $caching         =  1;
    and that is all? (or should i use cache in cache file ?)

    i mean do i need to insert someting to php script

    (sry, i am noob trying to learn...)

  4. #4
    Grand Master FragFrog is offline
    Grand MasterRank
    Aug 2004 Join Date
    The NetherlandsLocation
    5,629Posts
    What do YOU think? Now go and actually READ the link I posted.

  5. #5
    Grand Master username1 is offline
    Grand MasterRank
    Jul 2004 Join Date
    5,867Posts
    Do note that SQL supports queries that are executed at a specific time.



Advertisement