Forum: สอบถามปัญหา Notes ทางด้านเทคนิค |
Tags1: | Created on Nov 19, 2010, 6:53 AM by 9notes/9Notes|Topic Responses: 1 |
&action=openDocument&documentId=1526 |
ปกติถ้าเราใช้ window จะ access ผ่าน com ได้ แต่ถ้าเป็น OS อื่นอาจจะต้องเขียนเป็นภาษา c ครับ แต่ต้องนำเอา dll ไฟล์ไปติดตั้งบน php server ครับ
Access Lotus Domino through an API
An alternative to COM access is to use the Lotus Notes/Domino C API. Theoretically, you can use this solution on operating systems other than Windows. We recommend that only developers who have a lot of experience in C/C++ programming use it (if you have a reason for not using a COM interface or XML). The functionality provided in the sample API solution is limited, and you must basically write your own code in the C programming language to accomplish most tasks.
The sample library provides a good example for creating PHP extensions. It comes only as source code, and you must have the Visual C compiler and the Domino C API toolkit to compile the code. For your convenience, we've compiled the source code into a DLL file and included it in the Downloads section. You can activate the Notes extension by adding the following line to the php.ini configuration file:
extension=php5_notes.dll
The following code example shows how to use this technique after you produce the required DLL.
Figure 3 shows the output from running the API code from the command line.
Figure 3. Output of the API code
[img]http://www.ibm.com/developerworks/lotus/library/domino-php/fig-3.jpg[/img]
รายละเอียดเพิ่มเติมตามลิงค์ด้านล่างเลยครับ
http://www.ibm.com/developerworks/lotus/library/domino-php/ |
|