Image uploader in php,xml

Hi everyone.
Trying to find a tutorial/script for a php form that can upload images to different sections and also add the images directory to a xml file.