I have fakescript.php in my cgi-bin and realscript.php in a folder called 'scripts'. The scripts folder is located in the cgi-bin and is password protected. fakescript calls realscript via an include statement. My output is a 500 Internal Server Error. Why?
Here is my form:
<form action="cgi-bin/fakescript.php" method="post">
<input type=text value="email@me.com" name="email" size="20">
<input type="SUBMIT" VALUE="Submit">
</form>
My fake script:
<?php include "scripts/realscript.php";?>
My real script:
<?php
echo $email;
?>
Output:
500 Internal Server Error 🙁
The idea is to password protect my scripts. Thanks for any help and suggestions.