I notice that the following code is correctly pulling the file contents:
However, for a couple pages the code does not work. I have an html page with a jpg photo and a text caption underneath. Only the caption shows. The jpg does not show up - just a paragraph space where it should be. If I open the html page separately, I can see the image and caption plainly. Since the caption shows up, the URL is correct.PHP Code:$file = '../includes_html/'.$PartNo.'.htm';
if(file_exists($file))
{
echo file_get_contents($file);
}
Are there some exceptions that prevent the file_get_contents code from working? It correctly shows text and images on other pages. I'm puzzled that it has not worked with the last two pages I uploaded. Here's the html page where the jpg does not show up:
Adding the DOCTYPE to the top did not make any difference.Code:<body> <p align="center"> <img src="89442_decal_files/89442_decal.jpg" /></p> <p align="center"> Decal Sheet included </p> </body>
Thanks!







Bookmarks