http_post_data problem
Posted: Fri Oct 31, 2008 11:17 am
Hi All,
I am trying to pass a bit of XML to a web address using http_post_data.
Firstly I have PHP setup by my internet provider but no extensions setup. I assume using this function doesn't require an extension?
Basically the below code is what I am using though it doesn't work.
This displays the following error:
Fatal error: Call to undefined function: http_post_data() in /data/httpd/onlinegames/data/testweb/onlinegames.php on line xx
Anyone got any idea what I am doing wrong and how to rectify it?
Much appreciated
Simon
I am trying to pass a bit of XML to a web address using http_post_data.
Firstly I have PHP setup by my internet provider but no extensions setup. I assume using this function doesn't require an extension?
Basically the below code is what I am using though it doesn't work.
Code: Select all
<?php
$xml = '<?xml version="1.0" encoding="UTF-8"?\>
<person>
<method>sendtheitem.link</method>
<serviceid>345346</serviceid>
<params>
<msisdn>3526276347232</msisdn>
<operator>34634634</operator>
<country>GB</country>
<lang>en</lang>
<content>games</content>
<Type>wap<Type>
</params>
</person> ';
$response = http_post_data("http://webapp.hidden.net/esp/18UY14/w2m.esp",$xml);
?>
Fatal error: Call to undefined function: http_post_data() in /data/httpd/onlinegames/data/testweb/onlinegames.php on line xx
Anyone got any idea what I am doing wrong and how to rectify it?
Much appreciated
Simon