Page is a not externally linkable
- Hardware and OS Related Technologies
-- Linux, Unix, and *nix like Operating Systems
---- Repost: Linux and PHP class location


StupidScript - 10:34 pm on Sep 15, 2009 (gmt 0)


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.

i.e.

on server:
- classes.php = <?echo "hello"?>
- test.php = <?include "classes.php"?>, there

in browser:
- test.php = hello, there


Thread source:: http://www.webmasterworld.com/linux/3988161.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com