Web Hosting Talk







View Full Version : Include file and Symlink


Crazy BigGaz
04-16-2007, 03:53 AM
Hi,

I currently setting up a new website, at the moment it has 3 database connection files all the same and was wondering if I could get it down to just the one coonection file.

The problem is am using 2 sub-domains where I have one database connection file in each one, so I am unable to use ../../ as I have tried it with the php command include_once( '../../db.php' );

So I was wondering if a symlink would work ?

Also would a symlink work for a css file ?

Regards,
Garry