Nick wrote:
Is there a better way to link the includes to the site root then? The
only probelm I have with naming my includes.inc is that I wont get php
syntax highlighting in my editor (dreamweaver). -Nick
read the responses to your post. you simply don't want the file to be parsed
by the webserver first, hence you use a file path. You should never be doing
something like include('http://www.mysite.com/something.php'); because then
the webserver will be parsing it first. Rather, just do
include('something.php') or
include($_SERVER['DOCUMENT_ROOT'].'/includes/myfile.php'); etc. If you
preface it with
http://, it's going to get requested from the webserver,
which you don't want. You want PHP to fetch the raw php file off the disk.
-Ian