alohaaaron
Programmer
Hi, I have PHP 4.0 so don't have simple XML. I"m trying to use file_get_contents to read in the XML and then read the file till the end using fopen and other file commands. Is this correct or does a file actually exist? Thanks!
$xml = file_get_contents ('php://input') or die('file_get_contents (php://input)');
$fp = fopen($xml, 'r');
If I print the contents below using $HTTP_RAW_POST_DATA it displays the XML file that was posted
echo "<pre>";
print_r($HTTP_RAW_POST_DATA );
echo "</pre>";
$xml = file_get_contents ('php://input') or die('file_get_contents (php://input)');
$fp = fopen($xml, 'r');
If I print the contents below using $HTTP_RAW_POST_DATA it displays the XML file that was posted
echo "<pre>";
print_r($HTTP_RAW_POST_DATA );
echo "</pre>";