Minimising Server Resources

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Minimising Server Resources

    How can server resources be minimised ? wht shud be kept in mind while coding tht ensures script runs faster nd uses less server resources ??.. I have found few like using ' instead of " nd only using once print nd echo command nd use '. nd write consecutively wht else ? ..
    <span style="font-size:12pt;line-height:100%"><span style="color:#FF0000">ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt</span></span>

    #2
    if your on shared hosting i wouldnt bother changing anything as most probably another script on same server would probably be using a load of resources thus nulling any changes you make

    Comment


      #3
      1.use " instead of &#39; because &#39; used as apostrophe in a string will give u error
      2.use echo() instead of print() because echo takes multiple parameters in it,but print takes only 1 parmeter.
      3.declare less variables.
      4.use variables n strings intrigating them dots (.)

      Comment


        #4
        1.use " instead of &#39; because &#39; used as apostrophe in a string will give u error[/b]
        have you tried a backslash \&#39; before apostrophe in a string? it works


        another thing try to reduce the mysql queries,

        dont use mysql select * if you need to select only few rows from database.
        mysql count(*) is faster then mysql_num_rows
        use

        echo &#39;Hello world&#39;;

        instead of

        echo "Hello world";

        add variables like this in a string echo "Hello {$variable} world";
        or echo &#39;Hello &#39;.$variable.&#39; world&#39;;


        you can also install lighttpd or Nginx instead of apache
        Advertise your mobile site for FREE with AdTwirl

        Comment


          #5
          playing with sql command...one more thing if you host your own server play around with php pear...

          Comment

          Working...
          X