Jump to content

Recommended Posts

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

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.