Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

125 users online



upload image to mysql database

upload image to mysql database

Currently viewing this thread: 1 (0 members and 1 guests)


goOse

goOse

i am much cool
Status: Offline!

upload image to mysql database

ok... well basically i read this tutorial on spoono,
http://www.spoono.com/php/tutorials/tutorial.php?id=42

and it lets me add pictures from a folder on the server to the database (though there are kinks.. i can only to get it to do one image at a time... but thats irrelevant right now), i was wonderring if theres a way to do this directly from the client side... IE; have a form that will browse for the image name, then have another page which handles that form take the picture, encode it and put it in the database.

would i have to first upload that image to the server, then have it read it from whatever temporary folder, or would php be able to use its own cache to store it?

thanks for any help Smile

___________________

Im cooler than you.

Dan

Dan

Ex-Ninja
Status: Offline!

triple post lol?

___________________

Dan

Dan1

Dan1

TF Retiree
Status: Offline!

http://us2.php.net/manual/en/features.file-upload.php

This goes over how to handle uploading files.

What most people do is save the image to a non-web-accessable directory, then give the file an md5'd name. You'd use mod_rewrite, so when your script accessed images/myimage.jpg, it actually went to /root/images/hfewjhf82j4893fh4893.jpg.

goOse

goOse

i am much cool
Status: Offline!

so it does first have to be uploaded somewhere seperate...and i do have to code it. ok. thanks=]

___________________

Im cooler than you.

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0072 seconds.