Re: path finder

From: Date: Mon, 25 Jun 2007 14:38:16 +0000
Subject: Re: path finder
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-257754@lists.php.net to get a copy of this message
elk dolk wrote:
Hi all,
    When I test my photo album in my IIS testing server relative path in the following code works fine :
    echo "<div class='cccc'><img src='/img/{$photoFileName}' width='120' height='160' border='0' /></div> ";
    but when I upload it to the web server I don’t see my photos, my  /home directory on the web server contains
public_ftp and public_html where my web site is stored I modify the path to this :
    echo "<div class='cccc'><img src='/home/public_html/img/{$photoFileName}' width='120' height='160' border='0' /></div> ";
    it doesn’t function      please comment
         ---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
Sounds to me as though the public_html/document_root is different on the two boxes. try taking the '/' off the beginning part of the src='' link This link is base from the web root src='/img/{$photoFileName}' This link is base on relative path src='img/{$photoFileName}' This might help -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#257754) next »