Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Image that you generate is not displayed in PHP

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 17-07-2009
Member
 
Join Date: May 2009
Posts: 18
Image that you generate is not displayed in PHP
  

I just made form that inputs some text and an image into a web page. The text update fine but the image doesnt show. i don't know whats the problem can you help me ?

Thanks

Reply With Quote
  #2  
Old 17-07-2009
Member
 
Join Date: May 2008
Posts: 171
Re: Image that you generate is not displayed in PHP

It may be that the browser displays weird characters or do nothing at all displays when you send an image to the browser.

On the one hand there should be nothing other than send the image (either the html code, characters, etc ...) and secondly you must specify the type of image to display.

To specify the type of image that we display to the browser, it is enough to top a code that differs depending on the type of the image but may take the following values (and other less commonly used):

Code:
<?php 
header ( 'Content-type: image/gif' ); 
?>
There are other possible values for the image type according to the type of image returned:
  • image / jpeg
  • image / png
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Image that you generate is not displayed in PHP"
Thread Thread Starter Forum Replies Last Post
Image cannot be displayed on PC. Aaghaz Operating Systems 4 02-01-2011 09:35 AM
How to generate a Box model and Floating image WeezY Software Development 3 09-10-2009 11:42 PM
Image thumbnails generate then disappear Ion Control Vista Help 5 08-07-2009 08:52 AM
Different image displayed in thumbnails sligh Customize Desktop 4 19-01-2009 12:20 PM


All times are GMT +5.5. The time now is 03:56 PM.