header + thumbnail class
Posted: Sat Apr 21, 2007 1:14 am
Hi All.
I am using the Thumbnail Generator Class from http://www.phpgd.com/scripts.php?script=1 This class works great for my needs, unfortunately, implementing it is not a walk in the park.
About my site :
My site is already is full of content and images (mostly thumbnails) that are resized by html (width = ). I have an index page that is the outside frame (hyperlinks, search bar) and a "main" that is in the middle of the outside frame and displays the thumbnails.
Problem :
When i invoke the thumbnail class ... i receive the good ol' "Warning: Cannot modify header information - headers already sent by" warning message, and i guess that's because is being called after stuff has already been sent to the browser. Is there a way to make it so i don't have to send a header? I've noticed that most or all classes that manipulate images have to send a header to the browser so it knows what type of data it is. Or is there a way i can call this header before the data is sent and not mess up my site. If so then where?
Thanks
-- tarja
I am using the Thumbnail Generator Class from http://www.phpgd.com/scripts.php?script=1 This class works great for my needs, unfortunately, implementing it is not a walk in the park.
About my site :
My site is already is full of content and images (mostly thumbnails) that are resized by html (width = ). I have an index page that is the outside frame (hyperlinks, search bar) and a "main" that is in the middle of the outside frame and displays the thumbnails.
Problem :
When i invoke the thumbnail class ... i receive the good ol' "Warning: Cannot modify header information - headers already sent by" warning message, and i guess that's because
Code: Select all
header("Content-type: image/jpeg;");Thanks
-- tarja