makf Posted April 22, 2007 Share Posted April 22, 2007 I have just set up php on my laptop. I am running apache server and mysql on windows xp. My problem is that when testing the set up with phpinfo() program, the images were not showing. Only the text was showing. From phpinfo() page, i could see that the gd libraries are also enabled as i intended but when i tried out some code with gd in hopes of displaying the image i got some weired text instead of the rectangle i was trying to draw. Can someone help me with setting up my programs so as to display the images. ( i am using apache 2.2.4, mysql 4.0.15 and php4.3.3) Link to comment https://forums.phpfreaks.com/topic/48083-images-not-showing/ Share on other sites More sharing options...
Guest prozente Posted April 22, 2007 Share Posted April 22, 2007 What is the weird text that is displayed? From what you've said it sounds like you haven't output the content-type header Check that you have mod_mime loaded and that you have mime.types accessible. In the script you created ensure you have the content-type header, here are some of the more common ones //For GIF header('Content-type: image/gif'); //For JPEG header('Content-type: image/jpeg'); //For PNG header('Content-type: image/png'); Link to comment https://forums.phpfreaks.com/topic/48083-images-not-showing/#findComment-234995 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.