whether php usen gd module?
you dont store images, you store references to files... 🙂 and gd can save files easily wherever you tell it to do so ...
You can store images into mySQL but you should not, is better to reference them and call the images from there, I have stored images into DB and brings up problems if you want to back up the info later on.
Regards,
Pepe