Page is a not externally linkable
StupidScript - 10:34 pm on Sep 15, 2009 (gmt 0)
i.e. on server: in browser:
As mcavic notes, as long as PHP and your web server can get at them, anywhere is fine. On my servers, I enable open_basedir restrictions, so I need to make sure that any PHP file (or directory that PHP might use) is included in the open_basedir list of directories. But otherwise, they are just files that any file that references them can incorporate into its code by use of the include or require set of instructions, after which they become essentially part of the document that referenced them.
- classes.php = <?echo "hello"?>
- test.php = <?include "classes.php"?>, there
- test.php = hello, there