久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

通過 PHP 連接 Sharepoint 數據庫

Connect to Sharepoint Database through PHP(通過 PHP 連接 Sharepoint 數據庫)
本文介紹了通過 PHP 連接 Sharepoint 數據庫的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我不熟悉 Sharepoint.我想使用 PHP 查詢或讀取 Sharepoint 數據庫.

I am not familiar with Sharepoint. I would like to query or read Sharepoint database using PHP.

有沒有辦法做到這一點?

Is there a way I can do that?

提前謝謝你.非常感謝任何幫助.

Thank you in advanc. Any help is greatly appreciated.

推薦答案

您應該考慮使用適用于 SharePoint 的 Camelot PHP 工具,它是專為 SharePoint 列表構建的 Camelot XML 格式的一個有據可查的 php 框架.

You should consider using the Camelot PHP Tools for SharePoint, it's a well documented php framework for the Camelot XML format specially constructed for SharePoint lists.

文檔和下載

  • http://docs.bendsoft.com/camelot-php-tools/
  • http://www.bendsoft.com/downloads/sharepoint-php-tools/

您還需要 Camelot SharePoint 集成工具包、http://camelottoolkit.codeplex.com/ 和 Camelot .NET 連接器(http://www.bendsoft.com/net-sharepoint-connector/).

You will also need the Camelot SharePoint Integration Toolkit, http://camelottoolkit.codeplex.com/ and the Camelot .NET Connector (http://www.bendsoft.com/net-sharepoint-connector/).

在可以訪問 SharePoint 服務器的盒子上安裝連接器,這可能是與 SharePoint 服務器相同的服務器,然后在與連接器相同的服務器上安裝集成工具包.設置集成工具包中包含的集成服務(按照說明操作),然后就完成了.網站上還有一些說明視頻.

Install the Connector on a box that can reach the SharePoint server, this may be the same server as the SharePoint server, then install the Integration Toolkit on the same server as the Connector. Set up the integration service that is included in the integration toolkit (follow the instructions) and then you are done. There are a few instruction videos on the websites as well.

使用它的好處是您將能夠使用常見的 SQL 查詢通過 API 與 SharePoint 列表和庫進行對話,從不使用基礎 mssql 數據庫.

The upsides of using this is that you will be able to talk to SharePoint lists and libraries through the API by using common SQL queries, the underlying mssql database is never used.

使用 SQL 從 SharePoint 中選擇數據

$SharePointQuery = new SharePointQuery(array(
    'sql' => "SELECT * FROM Tasks WHERE ID > 10",
    'connection_name' => 'SharePointConnection1'
));

按列表和視圖名稱從 SharePoint 中選擇數據

$SharePointQuery = new SharePointQuery(
    array(
        'listName' => 'Tasks',
        'viewName' => 'All Tasks',
        'includeAttachements' => false,
        'connection_name' => 'SharePointConnection1',
        'columns' => ''
    )
);

使用 SQL 和 SharePointNonQuery 在 SharePoint 中插入數據

$SharePointNonQuery = new SharePointNonQuery(array(
    'sql' => "INSERT INTO Tasks (Title,AssignedTo,Status,Priority,DueDate,PercentComplete) VALUES ('Test task from PHP',1,'In Progress','(1) High', '".  date('Y-m-d H:i:s') ."',0.95)",
    'method' => 'ExecuteNonQuery',
    'connection_name' => 'SharePointConnection1'
));

還有一些存儲過程可以幫助您進行一些操作,例如文檔庫的高級處理

There are also stored procedures to help you with some operations, like advanced handling of document libraries

下載文件

$download = new CamelotDownloadFile(array(
    "file" => $_GET["file"],
    "listName" => 'Shared Documents',
    "connection_name" => 'SharePointConnection1'
));

$download->download_file();

上傳文件

$args = array(  
    "file" => $_FILES,
    "listName" => 'Shared Documents',
    "folder" => 'Folder/',
    "connection_name" => 'SharePointConnection2'
); 

$UploadFile = new CamelotUploadFile($args);

這篇關于通過 PHP 連接 Sharepoint 數據庫的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Add programmatically a downloadable file to Woocommerce products(以編程方式將可下載文件添加到 Woocommerce 產品)
Get today#39;s total orders count for each product in Woocommerce(獲取今天 Woocommerce 中每種產品的總訂單數)
Add Custom registration fields in WooCommerce and phone field validation issue(在 WooCommerce 和電話字段驗證問題中添加自定義注冊字段)
Add a select field that will change price in Woocommerce simple products(在 Woocommerce 簡單產品中添加一個將更改價格的選擇字段)
Add custom columns to admin products list in WooCommerce 3(在 WooCommerce 3 中將自定義列添加到管理產品列表)
Customizing checkout quot;Place Orderquot; button output html(自定義結帳“下訂單按鈕輸出html)
主站蜘蛛池模板: 狠狠久久综合 | 久久久久成人精品亚洲国产 | 国产一区免费 | 午夜爱爱毛片xxxx视频免费看 | 国产午夜在线 | 91精品国产91久久久久久 | 久久精品久久久久久 | 黄色网一级片 | 欧美三区视频 | 美国一级毛片a | 久久成人国产精品 | 国产高清久久久 | 黄色大片免费观看 | 日韩精品激情 | 久久69精品久久久久久久电影好 | 欧美成人aaa级毛片在线视频 | 日本在线视频一区二区 | 一区二区三区免费 | 色在线免费视频 | 国产精品久久久久久久久婷婷 | 国户精品久久久久久久久久久不卡 | 欧美中文字幕一区二区三区亚洲 | 日韩成人性视频 | 超碰在线播 | 欧美一级久久 | 99久久精品免费看国产四区 | 久久久www成人免费精品 | 国产成人精品一区二区三区网站观看 | 国产精品看片 | 欧美激情视频网站 | 国产一区日韩在线 | 亚洲精品一区二区冲田杏梨 | 91久久 | 天天干天天爱天天爽 | 毛色毛片免费看 | 精品国产一区二区三区成人影院 | 久久精品 | 国产精品久久久久久久久 | 成人精品视频在线观看 | 精品美女视频在线观看免费软件 | 黄色免费观看网站 |