johntbailey
08-03-2006, 11:28 PM
I'm trying to dynamically specify the name of the new file to be created (server side) by passing the file name into php.
I'm using (which works when I define the filename inside the php):
//$filename = "images.xml";
$raw_xml = file_get_contents("php://input");
print $raw_xml;
$fp = fopen($filename, "w");
fwrite($fp, $raw_xml);
fclose($fp);
I've tried doing this www.myurl.com/newfile.php?filename=new.xml
Any ideas?
I'm using (which works when I define the filename inside the php):
//$filename = "images.xml";
$raw_xml = file_get_contents("php://input");
print $raw_xml;
$fp = fopen($filename, "w");
fwrite($fp, $raw_xml);
fclose($fp);
I've tried doing this www.myurl.com/newfile.php?filename=new.xml
Any ideas?