Re: defining a folder on localhost
| From: | Richard Lynch | Date: | Tue, 08 May 2007 18:14:46 +0000 |
| Subject: | Re: defining a folder on localhost | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254567@lists.php.net to get a copy of this message | ||
On Tue, May 8, 2007 6:23 am, blueboy wrote:
> I want to define a folder like this
>
>
> define('IMAGE_FOLDER',$_SERVER['DOCUMENT_ROOT']."/mysite/property_images");
>
> I am working on a windows machine running apache and this does not
> work. It
> doesn't seem to like the forward slashes.
> the document_root gives C:/Apache/htdocs/
>
> Does anyone know a way to define the root folder on localhost so then
> when I
> upload to the web server I either have to make no changes or just
> change
> this one definition.
You may want to use: DIRECTORY_SEPARATOR
Though one User-Contributed note on the filesystem page claims you
don't need it.
Perhaps it's not the '/' versus '\\' that is messing you up in the
first place...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?