include() and current working directory

From: Date: Sun, 09 Mar 2008 01:47:17 +0000
Subject: include() and current working directory
Groups: php.general 
Request: Send a blank email to php-general+get-271166@lists.php.net to get a copy of this message
Hi, I'm using include to display a html file from a different directory to the current working directory. This page displays, but is missing all the CSS formating. I'm assuming this is because it can't find the CSS because it's in the different directory to the CWD. So, the easy way out is to move the CSS, but I've got heaps of these, and it makes it really messy. The PHP looks like this: include("xxx/index.htm"); the css is saved in the xxx folder. I'm open to any suggestions, ideas? Many thanks Matt

« previous php.general (#271166) next »