I'm new to PHP. So far I'm trying to create a login & registration system.
My goal is to have visible PHP pages and then only runnable PHP pages which sort of route traffic. I have a page login.php
which is in the document root (/var/www/html
).
There is a form which posts to scripts/checklogin.php
. I set up scripts as a location
in apache and to deny from all
, in hopes that the PHP files in scripts would receive inputs via POSTs, process data, and then redirect accordingly via header(...)
.
I'm getting denied access issues when the request POSTs to scripts/checklogin.php
, which I'm guessing is due to the deny from all
.
Any ideas?