Import PHP project
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2007 05:01 PM
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"
Thanks.
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"

Thanks.
Labels:
- Labels:
-
Archive
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2007 10:28 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2007 10:17 AM
Hmm, I haven't thought of that. I'll see what I can do with Quercus.
Thank you.
Thank you.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2007 03:28 PM
I'm having a hard time to use the Quercus. The readme/installation files are too vague :?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2007 08:53 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2007 10:47 AM
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:
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):
Thanks for helping and your patience btw
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


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2007 04:31 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2007 03:43 PM
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,
I did removed the semi column on the php_soap.dll extensoin file and specified the extension_dir too.
Hmmm :?
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 :?
