PHP Thumb » Help & Bugs » Help

getting around header restriction

(3 posts)
  1. alex
    Member

    In the documentation, I found the following line:

    When showing an image, the library sends a header before the image stream. Because of this you CANNOT show an image directly in the middle of your page since output will have already started. It's very much the same as how you can't just toss a session_start() in the middle of your page. You can, however, get around this restriction in a relatively easy way, which we'll take a look at later.

    However, I can't find the easy way to get around the restriciton that is mentioned. Could you please explain how to do this?

    Posted 2 years ago #
  2. Well, you can't really get around the restriction... once content has been displayed after headers have been sent, you can't send them again. You can, however, do something like I've outlined here: http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#ShowingImages

    Posted 2 years ago #
  3. alex
    Member

    Thanks, that was what i was looking for.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.