1. PHP
(dynamic web pages)
Every web page within the site is made out of PHP files. Because the
site was going to be moved from our testing servers to Thinkquest servers,
we decided to call all the information, such as the database information and
the navigation panel all from one file. Thus, if there was something
wrong with the navigation panel, or we wanted to update a particular
section, we could simply change one file and the rest of the web pages on
the site would be changed.
In the picture to the
left, we can see that all the database information
for every page on the server was called through the "local_config.php" file.
The basic information, such as database name and password were placed into
this file. This also means that this information is more secure since
they are in separate PHP files (they cannot be viewed).
The biggest problem we ran into using PHP files that were used by every page
was that the subdirectories of the site would have the relative URL based on
what the pages in the doc_root folder had. Thus, subdirectories would
link to the wrong a relative URL as if that document were in the
subdirectory. We overcame this problem by creating another dynamic
file for each subdirectory, making the links relative to that subdirectory.
|