I have an existing web site that works well for me. It is quite large with several hundred HTML pages and it is in a hierarchal structure on the web server. Each page has its own file directory and all the files that support each page are also in that same directory.
I want to add PHP at various places in the existing web site that references a PHP library for database access and other functions.
The question is – How do I organize the site?
I can put the PHP library off the server root (“public/includes/rpcl” for example) but how do I reference the files at this location from other parts of the site? Do I have to place all of the PHP files at this same location or can I have them in the directory structure where they make sense? What is the normal way to do this?
A simple example will help me avoided problems down the way.
Thanks…