Posting images to a database with PHP and Flash
Posted: Sat Mar 27, 2010 7:41 pm
I have an image exporting from Flash into the same folder as the PHP file:
I have tried a few things, but I am not sure how to post the image into my database. Does anyone have an idea?
Code: Select all
if (isset($GLOBALS["HTTP_RAW_POST_DATA"])){
$img = $GLOBALS["HTTP_RAW_POST_DATA"];
$file = fopen($_GET['name'],"w");
fwrite($file,$img);
fclose($file);
}