
I am new to PHP but not new to HTML and DOS. I have a PHP "login" script that works very well as long as the protected files are in the same folder as the script. Each protected page (about 2 dozen) include:
Code: Select all
<?php
include ("validate.php");
?>
As I like to keep things neat I need to place the 2 dozen files in about 4 different flolders. When I do that I, of course, get an error message that it can't find "validate.php". I've tried every combo of paths I know and nothing seems to work. What am I doing wrong?
Assume:
Main Folder is "Secure Website"
Sub Folder "Login" (contains "validate.php)
Sub Folder "Personal Info (contains files with the include statement)
Sub Folder "Stock Info (containg files with the include statement)
I need to point the "include" statement in "Personal Info" and "Stock Info" back to Login/validate.php.
Help would be appreciated.
Thanks
Jim