Youtube API, PHP, SimpleXML question

I’m trying to work with the youtube api and simplexml. I can not install zend on my current hosting provider, so I can’t use the gdata library…

Anyways, retrieving information with simplexml and the youtube api is rather straightforward and I understand that just fine. My troubles are with updating through the api or adding and appending.

For example, I can’t figure out (and google search fails me) how to ‘add a comment’ to a video through simplexml and the youtube api.

Does anyone have any knowledge of how to do this, or point me in the right direction?


Hi, I would think SimpleXML is only for retrieving information. If you want to POST something to a server or use a REST API you need to use something like cURL.