note 29648 added to function.imagejpeg
| From: | crazyted at crazyted dot com | Date: | Thu, 20 Feb 2003 03:51:01 +0000 |
| Subject: | note 29648 added to function.imagejpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44240@lists.php.net to get a copy of this message | ||
In regards to adding images (or any other binary file) to a database, unless you absolutely *have*
to, a MUCH better solution is to simply save the file you create to a directory and update your
database with a URL to this file.
When I first started DB development I was hung up with BLOBs and how to make them effectively work
with PHP but realized that they can severely impact performance and you also limit what you can do
with those files once they're inside the DB.
If you can avoid using BLOBs, and most people can, then by all means just create a look-up table for
your file urls and save them to a directory to store the files. File access and scalability will be
greatly increased in most cases.
--
http://www.php.net/manual/en/function.imagejpeg.php
http://master.php.net/manage/user-notes.php?action=edit+29648
http://master.php.net/manage/user-notes.php?action=delete+29648
http://master.php.net/manage/user-notes.php?action=reject+29648