note 25909 added to function.unlink
| From: | alexatkin at rack1 dot php dot net | Date: | Thu, 10 Oct 2002 17:07:44 +0000 |
| Subject: | note 25909 added to function.unlink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37904@lists.php.net to get a copy of this message | ||
When creating a temporary image file and then sending it to the browser you dont actually have the
make a file at all, eg:
<?
header("Content-Type: image/jpeg\n");
echo
/usr/bin/jpegtopnm /var/www/html/clubs/photos/11.jpg | /usr/bin/pnmscale -xysize 160 120
| /usr/bin/pnmtojpeg 2>&1;
?>
I was quite suprised to see that work but it could be quite useful if you have more CPU power to
spare than HD space, I know I plan to use it for a small Intranet so I dont have to store loads of
thumbnails which will rarely be used.
--
http://www.php.net/manual/en/function.unlink.php
http://master.php.net/manage/user-notes.php?action=edit+25909
http://master.php.net/manage/user-notes.php?action=delete+25909
http://master.php.net/manage/user-notes.php?action=reject+25909