問題描述
有誰知道如何集成Sharepoint和Php.我正在嘗試開發可以連接到 Sharepoint 的 php 應用程序.特別是因為基本上我是網站開發人員,我希望我的所有網站都與 Sharepoint 連接.所以,我只想創建 PHP 應用程序,使其適用于所有網站.我不知道是否可行,但我想嘗試一下,但不知道如何進行.
歡迎提出任何想法/建議.
提前致謝.
試試這個 API>
在 SharePoint 中
下載 WSDL.通常在這個位置:
下載 API
確保同時保存 SoapClientAuth.php
和 SharePointAPI.php
在 PHP 中
//0: 在你的 php 腳本中包含 api.require_once('SharePointAPI.php');//1: 連接到 SharePoint$sp = new SharePointAPI('<用戶名>', '<密碼>', '');//2: 讀取列表$listContents = $sp->read('');//3: 現在你有了一個可以在 PHP 中使用的二維數組foreach($listContents 作為 $item){var_dump($item);}
通過這個API,您還可以查詢、更新、創建、刪除列表,查詢列表元數據
Do anyone know how to integrate Sharepoint and Php. I am trying to develop php app which can connect to Sharepoint.In particular since basically I am website developer, I want my all websites to be connected with Sharepoint. So, simply I want to create Php app such that it works for all the websites. I don't know is it possible or not but I want to give it a try but don't know how to proceed.
Any idea/suggestions is welcome.
Thanks in advance.
Try this API
In SharePoint
Download the WSDL. Usually at this location: <sharepoint.url>/subsite/_vti_bin/Lists.asmx?WSDL
Download the API
Make sure to save both SoapClientAuth.php
and SharePointAPI.php
In PHP
// 0: include api in your php script.
require_once('SharePointAPI.php');
// 1: connect to SharePoint
$sp = new SharePointAPI('<username>', '<password>', '<path_to_WSDL>');
// 2: read a list
$listContents = $sp->read('<list_name>');
// 3: now you have a 2-D array to work with in PHP
foreach($listContents as $item)
{
var_dump($item);
}
With this API, you can also query, update, create, delete lists, query list metadata
這篇關于如何將sharepoint與php連接的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!