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 "<img src='/images/test.gif'>"; /* no display of the image */
/* soundfile in my root (c:\phpweb) */
echo "<bgsound src='sound.mp3'>"; /* no output */
/* same image test.gif under my c:\ */
echo "<img src='c:/test.gif'>"; /* image displayd */
/* same sound under my c:\ *
echo "<bgsound src='c:/sound.mp3'>"; /* 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
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 "<img src='/images/test.gif'>"; /* no display of the image */
/* soundfile in my root (c:\phpweb) */
echo "<bgsound src='sound.mp3'>"; /* no output */
/* same image test.gif under my c:\ */
echo "<img src='c:/test.gif'>"; /* image displayd */
/* same sound under my c:\ *
echo "<bgsound src='c:/sound.mp3'>"; /* 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