Re: [PHP] linking to an image with document_root

2007-06-02 Thread Richard Lynch
On Fri, June 1, 2007 8:37 pm, Tom Rogers wrote: > Friday, June 1, 2007, 6:16:34 PM, you wrote: > b> May be a stupid question but can I link to images with doscument > root > > b> $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; > > b> echo ""; > > b> I am certain the path is correct, > > b

Re: [PHP] linking to an image with document_root

2007-06-02 Thread Richard Lynch
On Fri, June 1, 2007 6:33 pm, chris smith wrote: > On 6/2/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Fri, June 1, 2007 3:16 am, blueboy wrote: >> > May be a stupid question but can I link to images with doscument >> root >> > >> > $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Tom Rogers
Hi, Friday, June 1, 2007, 6:16:34 PM, you wrote: b> May be a stupid question but can I link to images with doscument root b> $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; b> echo ""; b> I am certain the path is correct, b> If not what are my alternatives? b> R. You don't need

Re: [PHP] linking to an image with document_root

2007-06-01 Thread chris smith
On 6/2/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, June 1, 2007 3:16 am, blueboy wrote: > May be a stupid question but can I link to images with doscument root > > $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; > > echo ""; > > I am certain the path is correct, > > If not what

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Richard Lynch
On Fri, June 1, 2007 3:16 am, blueboy wrote: > May be a stupid question but can I link to images with doscument root > > $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; > > echo ""; > > I am certain the path is correct, > > If not what are my alternatives? You could try if faster than yo

Re: [PHP] linking to an image with document_root

2007-06-01 Thread clive
blueboy wrote: May be a stupid question but can I link to images with doscument root there are no stupid questions, only stupid answers. $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; no you cant; do this in a script on your server: echo ""; print_r($_SERVER); and have look at

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Shafiq Rehman
Hi, You cannot use document_root to get the paths for images. You can write a function to get the images url in your application. function imageServer() { return "/images/"; } -- Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300 423 9385 On 6/1/07, Chris <[EMA

Re: [PHP] linking to an image with document_root

2007-06-01 Thread Chris
blueboy wrote: May be a stupid question but can I link to images with doscument root $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; echo ""; An image source is the URL to that image. The server document root is the local location of that file (eg /home/user/file.gif) - which is n

[PHP] linking to an image with document_root

2007-06-01 Thread blueboy
May be a stupid question but can I link to images with doscument root $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif'; echo ""; I am certain the path is correct, If not what are my alternatives? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www