cancel
Showing results for 
Search instead for 
Did you mean: 

Import PHP project

bud
Champ in-the-making
Champ in-the-making
Hi,

Can we import PHP projects (as well as MySQL database) to Alfresco? I've read some documentations, but I wanna be straight forward. Is the PHP library let us do that?

Sorry for my "newbiness" Smiley Wink

Thanks.
7 REPLIES 7

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Do you want to run this PHP inside the JVM using Quercus?

If this is what you mean then in theory yes, however I have encountered some difficulties, for example, running mediaWiki from within the JVM as the dB connectivity fails.

This is something I'll be looking at soon after 2.1 is complete, but should be theoretically possible.

Cheers,
Roy

bud
Champ in-the-making
Champ in-the-making
Hmm, I haven't thought of that. I'll see what I can do with Quercus.

Thank you.

bud
Champ in-the-making
Champ in-the-making
I'm having a hard time to use the Quercus. The readme/installation files are too vague  :?

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Yes the documentation in this area is still under construction so check here for the latest updates http://wiki.alfresco.com/wiki/PHP_SDK

Which are in perticular are you having difficulties with?

Cheers,
Roy

bud
Champ in-the-making
Champ in-the-making
Actually I'm having trouble just by doing a simple test, but I think I know why.

On the Test index.php (where you enter the required tests in the textbox and hit "Run test", after I hit the button, there's a blank page. Then I went to see the Apache errors and  got this:

Tue Jul 17 10:38:46 2007] [error] [client 127.0.0.1] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'PHPUnit2/Framework/TestListener.php' (include_path='.;C:\\php5\\pear') in C:\\Alfresco\\alfresco-php-library\\Tests\\util\\TestRunner.php on line 3, referer: http://localhost/alfresco/Tests/index.php

I browsed the php library files and there are some files and folders missing like PHPUnit2/Framework/TestListener.php.


I downloaded the php library again and there are no such folders/files.

The QueryExecuter also doesn't execute (it is there tho):

[Tue Jul 17 11:06:02 2007] [error] [client 127.0.0.1] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Alfresco/Service/Repository.php' (include_path='.;C:\\php5\\pear') in C:\\Alfresco\\alfresco-php-library\\Examples\\QueryExecuter\\queryExecuter.php on line 27, referer: http://localhost/alfresco/Examples/QueryExecuter/

Thanks for helping and your patience btw Smiley Happy

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Yeah, that's a good point!

In order to run the unit tests you need to download and install PHPUnit2.  ( http://pear.php.net/package/PHPUnit2/ ) We don't ship it with the library.

I need to update the instructions on the Wiki to reflect this.

Cheers,
Roy

bud
Champ in-the-making
Champ in-the-making
Thanks for the link.

Although I'm still having errors. After I hit the RunTest button, there's a blank page showing up. I went to see the Apache error log and guess what? No errors….That's really weird. I did followed all the instructions from wiki, including the php.ini and httpd.conf. I also installed Axis.

As for running the simple browse thing (expecting seeing Alfresco's interface) nothing shows up. Then I went to see the log,

PHP Fatal error:  Class 'SoapClient' not found in C:\\Alfresco\\alfresco-php-library\\Alfresco\\Service\\WebService\\AlfrescoWebService.php on line 28, referer: http://localhost/alfresco/Examples/

I did removed the semi column on the php_soap.dll extensoin file and specified the extension_dir too.

Hmmm  :?