Jump to content

Archived

This topic is now archived and is closed to further replies.

ErikB

socket and xml help please

Recommended Posts

Hello I hope you guys can help me. i'm sure it's pretty basic but i'm pretty new to php in general and never tried the fsockopen before, but i need to learn how to post to this API for work so i would greatly appreciate any help or pointing me in the right direction. (tried searching but i probably don't know the right thing to search for)

anyway here is the code that i attempted to rig together from a few different tutorials. ultimately it has to go to marketer2.silverpop.com/servlet/XMLAPI and port 80. thanks again!

for some reason it won't let me post the actual code so i tried at this php help forum and if you'll take the extra step you'll find it here. thanks again!
[a href=\"http://codewalkers.com/forum/index.php?action=displaythread&forum=phpcoding&id=16760&realm=default\" target=\"_blank\"]http://codewalkers.com/forum/index.php?act...0&realm=default[/a]

Share this post


Link to post
Share on other sites
Guest footballkid4
Sockets can be sort of tricky sometimes. I would suggest using curl() (if you have access to it) it's a much easier set of functions to deal with, there is no fgets() and fread(), it's just one curl_exec

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.