How to enable Sharepoint to get php files executed instead of downloaded?
I've been struggling around with this issue for quite a few days now. We want to use Sharepoint as a repository of documents and code-files to show customers kind of dummy-webpages/applications or presentations of upcoming web projects using the integrated security and permission system.
PHP 5.3.4 is properly installed using FastCGI and works fine if I put a php file physically on the file system on the same server where Sharpoint Server 2007 is running. Execute permissions are set to "Scripts and Executables" in the IIS Man开发者_StackOverflowager as well.
But as soon as the php file comes from the Sharepoint document library the file gets start the download dialog instead of displaying the according php file in the browser.
In the Document Library Setting of the according document library the Advanced Setting for the "Browser-enabled Documents" is set to "Display as a webpage".
Any ideas about this? Thanks in advance.
I don't think this can be done as the document is being stored in the database and is not like a file being served from the IIS file system. Have you seen this post:
Sharepoint Site using PHP code
Not sure if that might help you. You could also consider using a link list and a managed path on the SharePoint server to allow you to display them more easily. Unfortunately it would take a little more work than just uploading the PHP docs to a library - but might be easier in the end.
精彩评论