Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I manipulate file_get_contents data?

Status
Not open for further replies.

alohaaaron

Programmer
Mar 27, 2008
80
US
Hi, I'm trying to get the ["HTTP_RAW_POST_DATA"] data after an HTTP POST from of an XML file using the commands below. Can I manipulate this data using $fp=fopen($xml,"r"); or maybe I can't because it's not a file?

$xml = file_get_contents ('php://input') or die('file_get_contents (php://input)');

$fp=fopen($xml,"r");
 
I don't have access to curl since the server I'm using has an old version of PHP
 
curl is within php since 4.02.

upgrade your server to a sensible platform and post back if you have further issues.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top