Prevent Direct Access To PHP
Not sure if this is the correct way of doing things (as I’m still “learning” PHP), but it worked for me.
Basically I wanted to include a php file, but not allow the user to be able to directly go to that same file.
Example: index.php calls upload.php. Blocking the end user from going straight to [...]