Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making PHP read server URLS

Status
Not open for further replies.

MJAZ

Programmer
Aug 1, 2006
73
US
Hello. I am currently working on a website that includes certain things on every page, e.g. the copyright notice and the navigational menu. On my Apache server I have aliased /includes/ as the includes directory. What I would like to do is have PHP include things that are in the /includes/ Alias directory using the alias.

Example:

Code:
<?php include('/includes/copyright.php'); ?>

I have tried that but it always produces an error, 'Failed to open stream'. I would really like to have the Aliased directory used because my entire website has aliased directories for style sheets and other things.

Thank you in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top