Hello everyone,
Glad to be part of the PHP world, and seeing all of its powerful capabilities.
I have researched and somewhat understand the function of require(), but my question concerns if there are any security or bandwidth issues arising when using multiple require in the same page? I chose this instead of include() as I understand it stops the script if the referring file was missing. These external *.PHP files only include HTML data.
Shared server with PHP 4.x and creating about 200 product catalog pages each with file extension *.PHP These pages are primarily HTML with the following single line PHP on top. Each single line scripting block enclosed with the PHP opening and closing syntax.
php require("directory/filename.php");
Another inserted in the middle of the page:
require("directory/filename2.php");
And a third placed at the bottom of the page for the footer:
require("directory/filename3.php ");
These external files represent sections that if changed (ie: a navigation menu struction), would prevent making the change on 200 individual catalog pages.
I have read about on several sites about turning "register_globals = off" in a php.ini, but the only variable I seem to have is the external php file being called.
Thanks in advance for your assistance.