a part of another page? You have part2.php page that is alsways used a part of globalpage.php.
I mean that at globalpage.php you have such a string: require_once('part2.php'). So part2.php puts its code into globalpage.php.
Unfortunately, you can just type localhost/part2.php and execute part2.php. Any ideas how to prohibit such use?
P.S. Sessions are OK, but that file is a part of globalpage.php for users with sessions and without sessions as well.
Thank you.
I mean that at globalpage.php you have such a string: require_once('part2.php'). So part2.php puts its code into globalpage.php.
Unfortunately, you can just type localhost/part2.php and execute part2.php. Any ideas how to prohibit such use?
P.S. Sessions are OK, but that file is a part of globalpage.php for users with sessions and without sessions as well.
Thank you.