As3 php problem moving an image from flash to a folder

i didnt know which to post this topic under as it requires both, i think.

Anyways, im using the jpgEncoder class to create an image file and what im trying to do is save that to a folder on a server, then im going to read the contents of the folder back into flash. I cant for the life of me figure out how i get the image to the folder though, i know the jpeg is being created as ive been saving it to my own pc. Can i just send the image straight to a folder without the need for php?

Ive scanned the net looking for tutorials but havent found any, wondered if anyone could explain the process to me, or point me to some useful resources.

Thanks