View Single Post
Old 02-27-2007, 10:02 PM  
tenderobject
Need Designs? 312352846
 
Industry Role:
Join Date: Dec 2004
Location: Somewhere
Posts: 11,688
Quote:
Originally Posted by k0nr4d View Post
That works...
...if you want your sites to all load really slowly and use more system resources then they need to...

Theres lots of methods, best one being
@include('/var/www/domain.com/links.php'); <-- never name anything .inc because that would read plain text. if you decide at some point to include some php code into the links file, if its named php it will be parsed if someone accesses it directly instead of showing your code to the person using .inc.

Don't include() over http as thats going to be very if your network lags. If you have to do it across several servers, setup a cron job that will download the links file to the other servers, or rsync, or scp, or whatever you want. If all your domains are on one server, include using the absolute path.
so whats thebest suntax fo include? iom using this ins some of my sites and it lags it sometimes.
__________________


NEED DESIGNS?!?
tenderobject is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote