Server-Side-like Paths
Posted: Tue Oct 14, 2008 4:23 pm
Hello all. I am doing something that is quite hard for my little pee brain to explain. I have two domains (on a virtual shared server) granted permissions to share files (one way). DomainA has the system files and DomainB requests those files. Actually, DomainB is requesting a PHP file which builds the site.
I am doing it this way so that many domains could run off of the same files (from one system space) which makes updates easier. Everything that is PHP is rendering fine. However, when the PHP echo's HTML code that has paths, the paths are wrong. So, absolute and relative paths both look within DomainB for the files. But the files are in DomainA. Does this make sense? If so, any ideas on how I can tell it to look in DomainA without putting a full relative path (I don't want users to be able to see that path).
I am doing it this way so that many domains could run off of the same files (from one system space) which makes updates easier. Everything that is PHP is rendering fine. However, when the PHP echo's HTML code that has paths, the paths are wrong. So, absolute and relative paths both look within DomainB for the files. But the files are in DomainA. Does this make sense? If so, any ideas on how I can tell it to look in DomainA without putting a full relative path (I don't want users to be able to see that path).