Find Jobs
Hire Freelancers

Display Folders and Files from Sharepoint in my PHP page using cURL

$10-30 USD

종료됨
게시됨 3년 이상 전

$10-30 USD

제출할때 지불됩니다
I have a code that allows me to display the file names in a PHP page from a specific folder of Sharepoint using cURL. See attached. My problem is to display all the files and folders(if there is) inside the parent folder and add the links so that when people click the file name they will be able to download the file. We don't want to save a copy in the server when we browse the files instead we want to get them straight from Sharepoint. Or perhaps generate an XML to pull it but not saving a copy because those files are confidential. I need a working code to do display the files with links to download them. This is the working cURL call. $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "[login to view URL]://mysharepoint.com/sites/CMS/&contextpath=cms&folderfilepath=Files", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", )); $results = curl_exec($curl); $json_decoded = json_decode($results); echo '<table>'; foreach($json_decoded as $result){ echo '<tr>'; echo '<td>'.$result.'</td>'; echo '</tr>'; } echo '</table>'; curl_close($curl);
프로젝트 ID: 28246358

프로젝트 정보

4 제안서
원격근무 프로젝트
활동 중 3년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
4 이 프로젝트에 프리랜서들의 평균 입찰은 $24 USD입니다.
사용자 아바타
Hi. Hope are doing fine. I have a good grip in PHP. I can display data from sharepont to your PHP script using curl. Will provide you top quality work for sure. I can start right now.
$30 USD 1일에
5.0 (51 건의 리뷰)
5.3
5.3
사용자 아바타
I am an expert in using PHP cURL. Please can we have discussion over chat to get the requirements clear. This Sharepoint app, is this hosted on local system or publicly accessible?
$15 USD 1일에
5.0 (72 건의 리뷰)
4.7
4.7
사용자 아바타
Hi, I worked with SharePoint apis before. I understood your requirement. You are showing sharepoint files in a list, now you want a script which will download the file in runtime. So I will create a page and will take filename as querystring. Then using PHP cUrl I will call SharePoint api and will get file content as stream. This way when user will click on a filename the file will be downloaded directly from SharePoint server. Thanks
$30 USD 3일에
4.9 (26 건의 리뷰)
4.8
4.8
사용자 아바타
Hi, Your SharePoint call will depend on few properties such as authentication token, umber of files in the library, library distribution, etc. One point to note is that SharePoint will deny calls which are been made to the REST API if the call returns more than 5000 items. So how is you call made to SharePoint from /api/getFileNames? is it calling the SharePoint REST API or is it a SSOM call? May be it is better to have a discussion before starting the project so it will give a clear idea on the implementation. Thanks.
$20 USD 7일에
5.0 (1 건의 리뷰)
0.6
0.6

고객에 대한 정보

국기 (UNITED STATES)
Norwalk, United States
5.0
6
결제 수단 확인
4월 21, 2018부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.