简体   繁体   English

如何从PHP5访问Lotus Notes数据库

[英]How can I access a Lotus Notes Database from PHP5

I would like to access our Domino Databases from php. 我想从php访问我们的Domino数据库。 My php5 is running in an Linux environment OpenSuse and for development Debian based System. 我的php5在Linux环境OpenSuse中运行,并且用于开发基于Debian的系统。 Domino Server 8.5.1 is also running on a OpenSuse Server. Domino Server 8.5.1也在OpenSuse服务器上运行。

Currently I'am accessing the Databases via parsing the web pages from Notes, but that is a horrible way to do that. 当前,我正在通过解析Notes中的网页来访问数据库,但这是一种可怕的方法。

Are there any ways or ideas to access Notes an more comfortable way? 有什么方法或想法可以更方便地访问Notes?

Yes, there are plenty of ways. 是的,有很多方法。 You can use Domino Designer to write a web service on the Domino server to expose the data that you want, and access the service that from your PHP code. 您可以使用Domino Designer在Domino服务器上编写Web服务,以公开所需的数据,并从PHP代码访问该服务。 You can use REST APIs if your Domino server can be upgraded to 8.5.3 or higher. 如果您的Domino服务器可以升级到8.5.3或更高版本,则可以使用REST API You might be able to install Domino on your OpenSuse server and have your PHP code invoke Java programs that use the Notes classes in Notes.jar to do the work, or you can actually do that without installing Domino, but you'll have to use the remote version of the classes in NCSO.jar and your server will have to enable CORBA. 您可能可以在OpenSuse服务器上安装Domino,并让您的PHP代码调用使用Notes.jar中的Notes类的Java程序来完成工作,或者您实际上可以在不安装Domino的情况下进行操作,但是您必须使用NCSO.jar中类的远程版本,并且您的服务器将必须启用CORBA。 You can use ODBC and NotesSQL as discussed here . 您可以按此处讨论的那样使用ODBC和NotesSQL。 I'm listing that last even though you did put an ODBC tag on your question because Notes databases are not relational and I find thinking of them that way to be too limiting, but if your data fits a relational model and you're comfortable with it, then it might be your best choice. 即使您确实在问题上放了一个ODBC标记,我也会列出最后一个,因为Notes数据库不是关系数据库,而且我认为这种方式过于局限,但是如果您的数据适合关系模型并且您很满意它,那么它可能是您最好的选择。

What Richard said, except I would start with this link for REST APIs . 理查德所说的,除了我将从REST API的此链接开始。 That takes you to the latest product documentation. 这将带您到最新的产品文档。 Richard's link takes you to a slightly outdated page on OpenNTF. 理查德的链接将您带到OpenNTF上稍有过时的页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM