View Full Version : PHP, MYSQL and making buttons
marcdeblanck
02-20-2002, 08:14 AM
Does someone know how to use a image stored in MySQL for PHP to add text and output it to the brouwser. It seems to work with images stored on the disk, but not when i try to load it from MySQL.
Pharcyde
03-07-2002, 10:14 AM
First off don't store your images in tha actual database....there really is no need. Just store pointers to the image on that server's HD
slade
03-08-2002, 12:20 PM
Or install GD and create the images on the fly.
www.php.net and search for the image functions in the documentation.
-Vic
marcdeblanck
03-09-2002, 06:07 AM
oké i can store images (link on my webspace) but i would use this for storing my buttons to generate on the fly and well i would like to know how just for fun and testing mysql/php.
Thanks for the replay. does anyone know how to upload an images to the site trough a form page???
sweede
05-28-2002, 07:12 PM
uploading images to the webroot, without strict file type checking is very insecure (many hosts do not allow this becuase you have to make directories world writable).
If you want users to upload files securely, upload them into MySQL.
look on www.phpbuilder.com on how to upload and store binary data in MySQL.
{F}allen
07-02-2002, 03:21 PM
GD is the only way i know, but its really cumbersome.
daynah
07-02-2002, 07:35 PM
http://www.phpbuilder.com/columns/rasmus19990124.php3 Here's an article on how to create images on the fly using gd and php. :)
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.