Saving uploaded files upon exit

I am loving ExeOutput for PHP but am having one issue that I cannot seem to resolve. In my application I upload a file (think Wordpress media upload) and it works fine. The reference in the database is added as http://heserver/imagedir/imagename.jpg and it shows properly when called from the script. However when I close the program (the exe generated by ExeOutput) and then re-run the exe the file is no longer there. The reference is still correct in the database but the file itself did not seem to save at the location. Any advice as to what I am doing incorrectly?

Ok, figured it out. Had it in the source directory. Put the folders in Data and it worked.