Re: Re: defining a folder on localhost

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

 



On May 8, 2007, at 6:47 AM, itoctopus wrote:

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

I feel a bit "n00bish" for asking this question... however, why do you need '//'? I could understand if it were '\\', but not the forwards.

~Phil


--
itoctopus - http://www.itoctopus.com
""blueboy"" <ross@xxxxxxxxxxxxx> wrote in message
news:59.9B.10930.33F50464@xxxxxxxxxxxxxxx
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


[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