In this chapter we are going to discuss two basic ways that files are used with PHP. The first one is the script with the PHP code in the form of the main script file and includes any files that the script might use. The second one is in the form of more content or data that is read off the local or remote file system and processed by the script.
Recipe 7-1. Include and Require
When PHP is used to execute or interpret a script it always starts with a single file. This can be as an input parameter to the command-line version of PHP (php-cli) or indirectly from a web server request ...