Jump to content

socket and xml help please


ErikB

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]
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.