Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7523799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:54:26+00:00 2026-05-30T02:54:26+00:00

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

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:54:27+00:00Added an answer on May 30, 2026 at 2:54 am

    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.

    Documentation and download

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

    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/).

    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.

    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.

    Selecting data from SharePoint with SQL

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

    Selecting data from SharePoint by list and view name

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

    Insert data in SharePoint with SQL and SharePointNonQuery

    $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 a file

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

    Upload a file

    $args = array(  
        "file" => $_FILES,
        "listName" => 'Shared Documents',
        "folder" => 'Folder/',
        "connection_name" => 'SharePointConnection2'
    ); 
    
    $UploadFile = new CamelotUploadFile($args);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Really not familiar with jQuery. Is there anyway I can pass form data to
I'm not familiar with Lync at all. Is there a way to communicate with
I'm not familiar with where I can get the package com.sun.net.httpserver? I like to
I am not familiar with php and want to write a redirect script using
I am not very familiar with sharepoint so probably this can be builtin function
I'm not familiar with the universal binary/library thing, and would like to clarify some
I am not familiar with flash, and I would like to change an audio
I'm not familiar with the scala XML library. Is there a simple way to
I am not familiar with dojo. I have this application I am using that
I am not familiar at all with using WPF and the application that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.