Re: url vs dirname(__FILE__)
| From: | Chris Shiflett | Date: | Wed, 30 Nov 2005 04:16:28 +0000 |
| Subject: | Re: url vs dirname(__FILE__) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226616@lists.php.net to get a copy of this message | ||
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/