我想用Php将图像保存到mysql数据库 [英] I would like to save images to mysql database using Php

查看:111
本文介绍了我想用Php将图像保存到mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一些像5MB图像的大图像保存到mysql数据库使用php可以任何人帮忙

解决方案

回答这么多的问题会不好一次又一次。请参阅,例如,

http: //forum.codecall.net/topic/40286-tutorial-storing-images-in-mysql-with-php [ ^ ],

http://www.codeproject.com/search.aspx?q=PHP+ MySQL +%28store + OR +保存%29 +图像& doctypeid = 1%3b5 [ ^ ]。



更典型,建议不要将图像本身存储在数据库中。相反,您可以为所有图像提供一些唯一的名称,并将它们存储在站点主机的文件系统中,并使用数据库存储文件文件名。



< DD> -SA

I would like to save some large images like 5MB image to mysql database using php can anyone help

解决方案

It would be bad to answer the question asked so many times again and again. Please see, for example,
http://forum.codecall.net/topic/40286-tutorial-storing-images-in-mysql-with-php[^],
http://www.codeproject.com/search.aspx?q=PHP+MySQL+%28store+OR+save%29+images&doctypeid=1%3b5[^].

More typically, it is recommended not to store images themselves in the database. Instead, you can give all images some unique names and store them in the file system of your site's host and use the database to store just the file file names.

—SA


这篇关于我想用Php将图像保存到mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆