I'm trying to write a PHP web-aplication that, among other things, takes an image(or wav, or video) from a harddrive and store it in a database. it would be much easier to not need to deal with the file type.....
I don't know how to do this, really.
all i can guess is i need to take an image from an <input type=file>, and use chunk_split(base64_encode($file)) on it, and store that in the database.
does anyone know any good places learn about using the <input type=file>, and if there are any good tutorials to help do what i need.
i found
this, and really need to know about <input type=file> so i can edit it to do that. but if you have suggestions on a better system to deal with the images, i'd be glad to here about it.
just to tell you, security is not that much of a concern, as the site is designed to run on a company intranet, with people who have better things to do rather than screw with the script or database. they don't want to be there, really.