Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot access subdirs in my root, images,...

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I'm working local for the moment and when i try to display images in my root it doesn't work. When I set these images somewhere else on my disk, my browser will display them.
Can someone please help me?

<?php
/* file placed in root c:\phpweb) */

/* image test.gif --> map in my root (c:\phpweb): c:\phpweb\images */
echo &quot;<img src='/images/test.gif'>&quot;; /* no display of the image */

/* soundfile in my root (c:\phpweb) */
echo &quot;<bgsound src='sound.mp3'>&quot;; /* no output */

/* same image test.gif under my c:\ */
echo &quot;<img src='c:/test.gif'>&quot;; /* image displayd */

/* same sound under my c:\ *
echo &quot;<bgsound src='c:/sound.mp3'>&quot;; /* no output */
?>

When I set the code
<bgsound src='c:/sound.mp3'> /* output */
between html tags and change the extension into .html I hear the sound on the background!

I even can't call functions, images, soundfiles,... in subdirs of my root. Something I've forgotten to justifie in php.ini?

Best regards,
Boogey Man
 
It's probably something in my php.ini or apache that's wrong configured. But what?
:(
 
I guess your $DOCUMNET_ROOT in apache is wrong as it lookes to be interpreting /images as c:\images, check both php and pache to ensure they both have the same document root. ***************************************
Party on, dudes!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top