Re: [PHP] url vs dirname(__FILE__)

2005-11-29 Thread Chris Shiflett
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]/pa

[PHP] url vs dirname(__FILE__)

2005-11-29 Thread Chris
I trying to create an absolute path to include scripts and images in another directory. For includes, I have found $path = dirname(__FILE__) ."/mydir/myscript.php"; However, I am unable to reference an image using this path, like echo ""; To reference an image I have to create another path vari