Hi,
and the shorthand for this :
<?php
$img=ImageCreateFromJPEG($filename);
ImageJPEG($img);
?>
Thanks
Arash Dejkam
""Fredrik Arild Takle"" <[EMAIL PROTECTED]> wrote in message
9gvl19$er6$[EMAIL PROTECTED]">news:9gvl19$er6$[EMAIL PROTECTED]...
> 1. Authenticate user
> 2. Put the pictures in a "secret" folder or outside http_root
> 3. Do this:
>
> <?php
> header("Content-Type: application/download\n");
> header("Content-Disposition: filename=\"$file\"");
> $fn = fopen("$file" , "r");
> fpassthru($fn);
> ?>
>
> I hope this helps!
>
> Fredrik A. Takle
> [EMAIL PROTECTED]
> www.iportal1.com
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]