cancel
Showing results for 
Search instead for 
Did you mean: 

PHP with Alfresco - THE BASICS

rob2020
Champ in-the-making
Champ in-the-making
Hi,

I'd like to load a bunch of data into Alfresco via PHP (since the client I'm working with has PHP skills in house).

I'm a bit unclear of some really basic points so would really appreciate some pointers.

1. Where can I download the latest PHP API library?    (Have been going round in circles on the WIKI trying to find it. The download page where you can grab the Alfresco editions includes the php amp file which I've installed, but I haven't seen a library in there)

2. I've installed the PHP Integration amp file into my Alfresco repo.    Was this a necessary step to enable to interact with Alfresco from external PHP scripts?   Not 100% clear what this does.

3. How does the Alfresco integrated PHP engine work?  Does it have full PHP 5 functionality?  Is it recommended to use or is it better to go with PHP Web scripts hosted outside Alfresco.

Many thanks

Rob
2 REPLIES 2

pim
Champ in-the-making
Champ in-the-making
Hi Rob,

Here is part of te answer… the PHP amp makes it possible to run PHP scripts and applications (most noticeable Mediawiki) within the (Java based) Alfresco environment. It uses Quercus. You can find more information about that library here: (http://www.caucho.com/resin-3.1/doc/quercus.xtp).

Good luck!

Pim.

rob2020
Champ in-the-making
Champ in-the-making
Thanks Pim.

As to the location of the PHP library, I think this is it:

http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/modules/php-sdk/

Ouch that took some time to find. Doh!!!