misterE0
September 5th, 2006, 07:23 AM
this is probably a very simple/stupid one, but i've just started playing around with php. I setup my file server to also be a lampp server. Playing around with some files, I basically have a directory tree like this:
root:
-myfolder
---index.php
-imagefolder
-core.css
-common.htm
-index.php
so there's an index.php in the root folder and in the myfolder folder. common.htm has the header information for my website (www.borgish.com if anyone wants to see...wip). index.php from both the root dir and the myfolder dir references common.htm via "<?php require 'common.php';?>".
common.htm refers to core.css and a few images in the imagefolder folder. Now, on my LOCAL lampp server if i have those referenced as "/core.css" and "/imagefolder/image.png" it will not find the files, however, when I upload them to my webserver, it will.
So basically the issue is with relative path names. Is this some compatibility issue between ISS vs Apache, or is there something i'm not seeing? Appologies for the winded post.
root:
-myfolder
---index.php
-imagefolder
-core.css
-common.htm
-index.php
so there's an index.php in the root folder and in the myfolder folder. common.htm has the header information for my website (www.borgish.com if anyone wants to see...wip). index.php from both the root dir and the myfolder dir references common.htm via "<?php require 'common.php';?>".
common.htm refers to core.css and a few images in the imagefolder folder. Now, on my LOCAL lampp server if i have those referenced as "/core.css" and "/imagefolder/image.png" it will not find the files, however, when I upload them to my webserver, it will.
So basically the issue is with relative path names. Is this some compatibility issue between ISS vs Apache, or is there something i'm not seeing? Appologies for the winded post.