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 ? ..
Minimising Server Resources
Collapse
X
-
Minimising Server Resources
<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>Tags: None
-
have you tried a backslash \' before apostrophe in a string? it works1.use " instead of ' because ' used as apostrophe in a string will give u error[/b]
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 'Hello world';
instead of
echo "Hello world";
add variables like this in a string echo "Hello {$variable} world";
or echo 'Hello '.$variable.' world';
you can also install lighttpd or Nginx instead of apache
Comment
-
Guest
playing with sql command...one more thing if you host your own server play around with php pear...
Comment

Comment