Results 1 to 2 of 2

Thread: Image that you generate is not displayed in PHP

  1. #1
    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

  2. #2
    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

Similar Threads

  1. Image cannot be displayed on PC.
    By Aaghaz in forum Operating Systems
    Replies: 4
    Last Post: 02-01-2011, 10:35 AM
  2. How to generate a Box model and Floating image
    By WeezY in forum Software Development
    Replies: 3
    Last Post: 09-10-2009, 11:42 PM
  3. Image thumbnails generate then disappear
    By Ion Control in forum Vista Help
    Replies: 5
    Last Post: 08-07-2009, 08:52 AM
  4. Different image displayed in thumbnails
    By sligh in forum Customize Desktop
    Replies: 4
    Last Post: 19-01-2009, 01:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,614,902.46168 seconds with 17 queries