Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread David Krings
Hi, thank you so so so much!! I copied and pasted this and BAM! it just works! I love it. Thank you very much indeed! David K. Ken Robinson wrote: > > What you want to do is use the "'" tag in your script. The "src" > attribute should point to a script that will send the imag

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread David Krings
Bill Kamm wrote: > Does this help? > > http://www.php.net/ob_start > > "This function will turn output buffering on. While output buffering is > active no output is sent from the script (other than headers), instead > the output is stored in an internal buffer." > > Bill It generally does, but n

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread Ken Robinson
At 03:18 PM 10/31/2006, csnyder wrote: >I'm not sure what exif_thumbnail() would do with a non-image, but to >protect against $_GET['f'] == "../../../etc/passwd" you'd probably >better make that: I said it was a quick example with no error checking. I would put a check to make sure it's really an

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread csnyder
On 10/31/06, Ken Robinson <[EMAIL PROTECTED]> wrote: > Quick example (no error checking done...) > Main script > > ?> > > tn.php: > $image = exif_thumbnail($_GET['f'], $width, $height, $type); > header('Content-type: ' > .image_type_to_mime_type($type)); > echo $image; > ?>

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread Ken Robinson
At 02:02 PM 10/31/2006, Bill Kamm wrote: Does this help? http://www.php.net/ob_start "This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer." Bill David Krings wro

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread Bill Kamm
Does this help? http://www.php.net/ob_start "This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer." Bill David Krings wrote: >Hi, > >I want to use exif_thum

[nyphp-talk] exif_thumbnail

2006-10-31 Thread David Krings
Hi, I want to use exif_thumbnail to extract the thumbnail of an image and then have it displayed within a page. The page will have content before and after the thumbnail, and the thumbnail may be present or not. In order to have it show correctly, all manuals state to send the content sett