cliftonbazaar Posted May 12, 2011 Share Posted May 12, 2011 Hi all, I run 6 websites on my home server (none are very big) and I have the same privacy policy for all of them. My current code is <?PHP require("C:/default/pages/policy.php"); ?> but this is for microsoft IIS and I don't know how to do it under apache. The page of policy.php is not part of a web site but simply a file in the linux directory of website/default/pages James Quote Link to comment https://forums.phpfreaks.com/topic/236190-linking-to-another-page-on-the-server-but-not-the-same-website/ Share on other sites More sharing options...
trq Posted May 12, 2011 Share Posted May 12, 2011 Apache is no different to IIS, are sure the issue isn't Windows vs Linux? Quote Link to comment https://forums.phpfreaks.com/topic/236190-linking-to-another-page-on-the-server-but-not-the-same-website/#findComment-1214383 Share on other sites More sharing options...
cliftonbazaar Posted May 12, 2011 Author Share Posted May 12, 2011 No It's not windows V Linux. The code is what I used in IIS and it doesn't work with Apache, so all I wish to know is the equivalent in Apache. I have tried - <?PHP require("default/pages/links.php"); ?> <?PHP require("../default/pages/links.php"); ?> My problem is that 'default' is not part of any of my websites. Quote Link to comment https://forums.phpfreaks.com/topic/236190-linking-to-another-page-on-the-server-but-not-the-same-website/#findComment-1214739 Share on other sites More sharing options...
trq Posted May 13, 2011 Share Posted May 13, 2011 Filesystem paths are OS specific, your issue has nothing to do with Apache vs IIS. If default isn't part of any of your websites you are obviously using the wrong path. Quote Link to comment https://forums.phpfreaks.com/topic/236190-linking-to-another-page-on-the-server-but-not-the-same-website/#findComment-1214883 Share on other sites More sharing options...
cliftonbazaar Posted May 13, 2011 Author Share Posted May 13, 2011 Didnt' realise that Server is running Ubuntu 10 James Quote Link to comment https://forums.phpfreaks.com/topic/236190-linking-to-another-page-on-the-server-but-not-the-same-website/#findComment-1214919 Share on other sites More sharing options...
trq Posted May 13, 2011 Share Posted May 13, 2011 Then C: means nothing. The root of the Linux filesystem is represented by / Quote Link to comment https://forums.phpfreaks.com/topic/236190-linking-to-another-page-on-the-server-but-not-the-same-website/#findComment-1214934 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.