View Single Post
Old 02-27-2007, 09:50 PM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,229
Quote:
Originally Posted by Fris View Post
i do this with a lot of my sites i just edit 1 link file say links.inc

<?include "http://www.domain.com/links.inc"?>

on any site you want to do it, and all you have to do is update that one links.inc file
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.

Last edited by k0nr4d; 02-27-2007 at 09:52 PM..
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote