PHP FAQ: Can you show an example of how to use the PHP include syntax? Also, can you show an example of how to include HTTP content into a PHP script?
PHP include syntax to include a file
Sure, I just used the PHP include statement in developing a Drupal theme, and a simple form of the PHP include syntax to include a file looks like this:
<? include 'google-analytics.inc' ?>
This includes the contents of the file named "google-analytics.inc" into my PHP page output.