How to include a file in PHP

If you have ever wondered how to include another PHP file into a PHP script, this simple one line code sample will show you how.


<?php

// Place this into your PHP page

// and edit the file name

include "some_other_file.php";

?>


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.