How to read an image file into a string/array/etc ....???
| From: | Chris Payne | Date: | Thu, 26 Sep 2002 02:30:42 +0000 |
| Subject: | How to read an image file into a string/array/etc ....??? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21991@lists.php.net to get a copy of this message | ||
Hi there everyone,
I use the following to read in a text/php etc ..... file into a string so I can zip it, works no
problem:
$filename2 = "/home/domain/domain33/web/zip/whois.php";
$fd = fopen ($filename2, "r");
$filedata = fread ($fd, filesize ($filename2));
fclose ($fd);
However, how can I read a .gif file (For example) into a string or array or something so that I can
work with it?
Thanks everyone, this is a great list
Chris