Solved

WebDAV Check-Out Retrieves Parsed PHP File Instead of Source

Posted on 2007-03-30
2
484 Views
Last Modified: 2013-12-06
I have successfully set up a WebDAV directory with permission access and can connect with the credentials I provide.

The problem is, whenever I check out a PHP file, I receive the parsed version instead of the source.

The PHP files are parsed fine and can be accessed from a browser, but the problem occurs only when I try to get or check out a file via a WebDAV connection.

I am sure it's a directive or permissions issue, but I have no idea where to start looking.

Any help would be appreciated.
0
Comment
Question by:cracky
2 Comments
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 18834918
Guess this is a configuration issue of your webserver.  You need to configure your webserver so that for the webdav-part php is not enabled. Gues you will need to have a virtual host for webdav which has no interpretation of php enabled and the rest which has php enabled.
Unfortunal I can't tell you how to configure apache that way. Maybe the docu help http://httpd.apache.org/docs/2.0/en/mod/mod_mime.html
0
 
LVL 14

Author Comment

by:cracky
ID: 18835014
Thanks hernst.

Surely the whole idea is for WebDAV to be able to serve files and allow you to connect and transfer them at the same time? Doesn't it defeat the purpose if I have to check out from a directory outside of the Docroot?

I'll examine the options, but hopefully someone will chime in with another idea :)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question