Working with Related PHP Files
In fact, server-side programming often involves adding lots of files to a page: files for connecting to a database server, for running a database query, for sending email, and more. For example, the popular blogging system WordPress uses a single file, index.php, to control an entire blog—this one file manages every one of the blog’s pages, from the home page to a category page to a single blog post. To do this, the index.php file includes tons (really, a lot) of other PHP files. If you’re using a program other than Dreamweaver, the only way to edit a WordPress site is to open each file individually. Dreamweaver, however, can “discover” related PHP files and display them in the Related Files toolbar for easy access. To do this, you need to follow a few steps:
Open a PHP file.
If you use the Insert Server-Side Include command discussed previously, Dreamweaver automatically sees these PHP files and displays them in the Related Files toolbar with no further effort on ...