Quote:
Originally Posted by Fris
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.