Page 1 of 1

Server to server - Gateway send/receive without client

Posted: Thu Feb 10, 2005 3:32 am
by Murble
Hello,
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 if
and to receive:

Code: Select all

Response.Write xmlhttp.responseText


I am failing to figure how to do this in PHP.
can anyone help me?


Im new to php and kinda lost.

thank you.

Posted: Thu Feb 10, 2005 7:53 am
by feyd

Posted: Sun Feb 13, 2005 3:43 am
by Murble
sorry, Im new to php.
can you give me some guide?
I am lost

Posted: Sun Feb 13, 2005 9:01 am
by feyd
examples on those pages should get you started.

Posted: Mon Feb 14, 2005 3:29 am
by Murble
well, no.
since im new,
I sat and sat and played and messed with it and tryed to figure out what to do with all of this information..
and got frustraited and...

Im a C programmer who got accepted to this php job.. so I guess im in over my head.. kinda..


I know it should be something simple, but i have no one to show me and get me started.

well, thanx for trying to help anyway.