I need to communicate with alfresco through a PHP client, in my case is a web site. My goal is to access the repository, get an HTML file and load it in my website, so basically I will use Alfresco as admin panel backend where I create my html pages.
I know there is some material about this, I read it and test but didn't make it working.
But they doesn't work with Alfresco 5, giving me php errors about connection. So I read that the best solution may be using CMIS PHP Client but didn't found an example about it… is the cmis client this one:
I retested it on another server and it seems to "connect" now, but it gives me this error: <strong>Failed to get metadata from Alfresco. Code: 401</strong>
The error is "Authorization required", are you sure this works without alf_ticket ?? Your script seems to send the JsessionID, but it seems not working… can you tell me how it authenticate and make it work?
Because its a "get" you are sending the UID & PWD in the http request so you don't need alf_ticket as it uses the credentials passed in the URL. This is a standard mechanism for running a get request, you can do it from the browser.
I suspect your problem is that, so far as I can see, you are not setting $getUIDPWD to anything; it should be set to