send to php (using LoadVars - AS2) -
in your.php (resides in same folder as images) -PHP Code:myLoadVars = new LoadVars();
myLoadVars.delete_path = "your.jpg";
myLoadVars.sendAndLoad("your.php", myLoadVars, "POST");
myLoadVars.onLoad = function(){
trace("File removed = "+this.removed);
};
PHP Code:<?php
$delFile=$_POST[delete_path];
unlink($delFile);
print "&removed=".$delFile;
?>




Reply With Quote