This should do it:
$folder > Should be the absolute path to where you want to store your files. - If on Windows then something like: C:\Folder\Images\directory - If on Linux/Unix just as the one that's declared
$filep_name > Will be the image name you want to store in the DB
I wrote this script a long time ago, so you can notice it's written to make use of the enabled globals, to change it you know what you do, I've seen it in your code... ;)
Hope this works for you...
No comments:
Post a Comment