define('IMAGE_FOLDER',$_SERVER['DOCUMENT_ROOT']."//mysite//property_images");

-- 
itoctopus - http://www.itoctopus.com
""blueboy"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>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. 

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

Reply via email to