Jump to content


Photo

socket and xml help please


  • Please log in to reply
1 reply to this topic

#1 ErikB

ErikB
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 30 March 2006 - 05:50 AM

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]

#2 Guest_footballkid4_*

Guest_footballkid4_*
  • Guests

Posted 30 March 2006 - 02:40 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users