Re: url vs dirname(__FILE__)

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

 



Chris wrote:
I trying to create an absolute path to include scripts and images
in another directory.

These are two different things, but there is a relationship in the sense that URLs are translated to filesystem paths using document root:

http://host/path/to/script.php => [document root]/path/to/script.php

I think it's pretty important to understand the difference as well as the relationship. Once you do, your question might go away.

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
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