API PHP for a known store how to send an HTTP request and get the returned XML
Ask for advice
------Solution--------------------
There are APIs, just follow the interface specifications OK AH
Methods are generally: File_get_contents,curl,fsockopen
The specific choice of which depends on your API and the specific use of the environment
Your problem description is almost 0, not a good way to ask questions.
------Solution--------------------
JScript Code
------Solution--------------------
discuss
Reference:
There are APIs, just follow the interface specifications OK AH
Methods are generally: File_get_contents,curl,fsockopen
The specific choice of which depends on your API and the specific use of the environment
Your problem description is almost 0, not a good way to ask questions.
Well, the value returned by the API is the file_get_contents of the XML, the function reads the contents.
------Solution--------------------
Now that you've got the content, the rest of the process is to study it yourself.
PHP parsing XML method on the net catch a lot of
Believe in yourself, no problem.
------Solution--------------------
discuss
Reference:
Isn't that what you got? What else do you want?
I was just trying to get the XML, and see how to read the label.
------Solution--------------------
discuss
Reference:
Reference:
Isn't that what you got? What else do you want?
I was just trying to get the XML, and see how to read the label.
That
's all you have to read. My code returns all the content numbers.
------Solution--------------------
Use SimpleXML to parse the array, and the key to it is the tag you want.
------Solution--------------------
DOMDocument and SimpleXML are all official libraries, write a recursive function to traverse it.