/    Sign up×
Community /Pin to ProfileBookmark

Get xml data with php. request, responce…

Hey

I have to send a xml request, and put the responce into a variable to use later in the php code. I dont know if this is the best way to do xml. So please tell me if you have better suggestions. Anyway, which function should I use?

the request looks like this:
http://something.com/xmlrequest.etc?xmlstring=<xml verstion=”1.0″><more>…</more>

The xmlrequest.etc sends back xml with more data with POST.

So how can I retreve that responce? Should I use fsockopen, fopen or something similar?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@ZnupiMar 10.2008 — The xmlrequest.etc sends back xml with more data with POST.[/QUOTE]
How can a script send data using POST?

Anyway, why not use [url=http://www.php.net/session]sessions[/url]?
Copy linkTweet thisAlerts:
@TrailOfDeadauthorMar 11.2008 — How can a script send data using POST?

Anyway, why not use [url=http://www.php.net/session]sessions[/url]?[/QUOTE]


Im not sure hehe. I've been told by the people that made the other db to send a url like the one above. And it should work even if I just paste the hole url with the ?xmlstring=<xml ...>...</> in a browser.

I'm going to check out that session thing now.

Thanks.
×

Success!

Help @TrailOfDead spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...