Loading images to MySQL

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
Redcircle
Moderator
Moderator
Posts: 826
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Tue Nov 18, 2003 1:11 am

I would reccomend using the filesystem to store images. It is a much faster way to do things. If you keep the images in the database then there will be more database calls and speed will be affected. What I would do is keep them on the filesystem in a directory and just keep the path of the images in the database instead of the actual image in the database.

bonkers
New php-forum User
New php-forum User
Posts: 45
Joined: Wed Mar 12, 2003 7:17 pm

Thu Nov 27, 2003 2:38 am

That's what I've done to on my website, http://www.carsfx.com. The images are stored in a folder and named by the unique name of the car and the username. I just combine the both to retrieve the picture. It also allows me to manipulate the images with imagemagic via exec();

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Tue Aug 31, 2004 9:34 pm

considering that you are using apache....


http://httpd.apache.org/docs/misc/FAQ.html#image-theft

Post Reply