Keeping Things Simple Through Sym Linking
I’m sure this is already a wide spread practice, but its worth a mention anyway. What i’m talking about is keeping all of your library files (php/javascript/etc) outside of the web root and sym linking it all together. All you need is shell access to your domain. At the time of writing this, i am currently hosted on Dream Host which allows you that.
If you have a large library of class files / javascript files or even images that are used throughout most of your sites, why keep copying the files again and again to each new domain? What is infinatly better to do is to ssh into your account and create a few folders, such as phplib, jslib, imglib, etc. then in each new domain link them up using
ln -s ~/*lib/ .
Now any bug fixes or revisions you make to your files are automatically updated on each site running the links. Makes sense, no?







Clay August 2nd
Good idea… I usually use central folders like you describe but just put them inside the individual domain’s web root. That doesn’t allow for multiple sites to pull from the single file source though (without turning f_open on and using absolute URLs to call them). I’ll give this a try.
Add Yours
YOU