Re: Guardar una foto en mysql.
| From: | Jesús Reyna | Date: | Sat, 12 Mar 2005 14:37:20 +0000 |
| Subject: | Re: Guardar una foto en mysql. | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-53642@lists.php.net to get a copy of this message | ||
Hola,
Puedes usar un campo tipo blob para guardar cualquier tipo de información en modo binario (fotos, pdf's, etc).
Checate este manual para que veas como:
http://www.mysql-hispano.org/page.php?id=11
Saludos.
Jesús Guadalupe Reyna Tovar
Monterrey, Nuevo León, México
http://www.jesusreyna.org
Linux User # 320213
-----BEGIN GEEK CODE BLOCK-----
GCS !d s++:++un--C++UPL++EW?n!ok-W
?O!M?VPSPE++Y?PGPt?5X++Rtv+b-DID+
Ge+¡h!r+y+
------END GEEK CODE BLOCK------
www.geekcode.comMarkisich Emiliano wrote:
Hola soy nuevo en el grupo. quiero preguntarles si es posible guardar una foto en mysql pero sin tener la carpeta temporal en modo escritura? este es el error que me tira el servidor, si hay otra forma de subir fotos a mysql mejor. Warning: fopen(): open_basedir restriction in effect. File(/tmp/phpxy1rDQ) is not within the allowed path(s): (/home/webcindario/markisoft) in /home/webcindario/markisoft/guardar_archivo.php on line 14 Warning: fopen(/tmp/phpxy1rDQ): failed to open stream: Operation not permitted in /home/webcindario/markisoft/guardar_archivo.php on line 14 Warning: fread(): supplied argument is not a valid stream resource in /home/webcindario/markisoft/guardar_archivo.php on line 15 Warning: fclose(): supplied argument is not a valid stream resource in /home/webcindario/markisoft/guardar_archivo.php on line 17 Warning: mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource in /home/webcindario/markisoft/guardar_archivo.php on line 24 NO se ha podido guardar el archivo en la base de datos.