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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php