Well, that function is not in any scripts on this site, but it does contain the functions to upload data into your database.
First, you probably don't want to upload image into the database in the first place, a database is not the place to store pictures.
Second, you can use fopen to open a filepointer to an image and simply safe the file to disk.
From there, uploading to the database is a doddle.
look at "storing binary data in a database"