Re: include() and current working directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



php@xxxxxxxxxxxxxxxx wrote:
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



I think your problem has to do with the difference between relative and absolute URL references.

Do some googling about those and I think you might get your answer. If you do not, and since this really has nothing to do with PHP, you can email off list and I can assist you with the problem.

Thanks

Jim Lucas

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux