I am rewriting a code I wrote in ASP to PHP.
I got a problem.
Im writing a gateway and I need it to transfer data automaticaly.
In ASP I used this object with this code:
to send:
Code: Select all
DataToSend = "xml=<bla bla...>"
Dim xmlhttp
Set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST", "http://www.address.com/file.asp", false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send DataToSend
Set dbhttp = nothing
end ifCode: Select all
Response.Write xmlhttp.responseTextI am failing to figure how to do this in PHP.
can anyone help me?
Im new to php and kinda lost.
thank you.