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
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';
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
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
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
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
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
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
8 matches
Mail list logo