<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>File permissions?</div>
<div><br>
</div>
<div>Are there directives preventing Apache from executing php scripts in certain directories or limiting the directories in which php scripts executed?</div>
<div><br>
</div>
<div> <br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF332795" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> support-bounces@drupal.org [support-bounces@drupal.org] on behalf of Chris Miller [cjm@tryx.org]<br>
<b>Sent:</b> Saturday, January 31, 2015 11:23 AM<br>
<b>To:</b> support@drupal.org<br>
<b>Subject:</b> [support] Legacy PHP script<br>
</font><br>
</div>
<div></div>
<div>
<div style="font-family:arial,helvetica,sans-serif; font-size:10pt; color:#000000">
<div>Hi Folks,<br>
</div>
<div><br>
</div>
<div>I have a legacy php script that displays a form, accepts input and posts back to itself, where it looks for a non-zero $_POST array to decide if it is processing or displaying. In the event of process, it updates a database and redirects to a thank-you
page. Simple.<br>
</div>
<div><br>
</div>
<div>I put this script in /site/default/files/form.php and I href'd it to a picture. When I click the picture, I get the text of form.php, not the result of processing. I have discovered that if I put the form on a different website, then I do get execution,
so apparently Drupal is able to suppress php execution within its URL space. How do I bypass anti-execution restriction for this legacy script? Or, how do I incorporate this legacy script into an existing Drupal site?<br>
</div>
<div><br>
</div>
<div>Thanks for the help,</div>
<div><br>
</div>
<div><span name="x"></span>
<div><span style="font-family:comic sans ms,comic sans,sans-serif">Chris.</span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>