Header("Content-type: image/gif") help
Results 1 to 2 of 2

Thread: Header("Content-type: image/gif") help

  1. #1
    Senior Member
    Join Date
    Jun 2000

    Header("Content-type: image/gif") help

    I am having trouble using this command at the top of scripts, it says that all white space should be removed before it and no html code can be before it.

    But i want the image in the middle of a html document.

    Thanks a lot

  2. #2
    Senior Member
    Join Date
    Jan 2001

    RE: Header("Content-type: image/gif") he

    I think what you're trying to do is the following. You will need at least two PHP scripts. One for the HTML (we'll call it A.PHP), one for the embedded GIF (B.PHP).

    A.PHP does the following-

    embed html and php here
    <img src="/b.php">

    B.PHP does the following-

    Header("Content-type: image/gif")
    ...generate image here...

    Small footprint P2P web server for Windows,
    File-sharing, PHP, wireless apps & more

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts