Home > Php > How to include a file in PHP

How to include a file in PHP

January 7th, 2010 Leave a comment Go to comments    

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";

?>

Categories: Php Tags: ,
  1. No comments yet.
  1. No trackbacks yet.