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

?>

Ashesh

सयौ थुङ्गा फूलका हामी एउटै माला नेपाली, Welcome to my webpage. I'm from the Himalayan Country of Nepal. Well talking about me, I like mostly Web programming and Designing and furthermore I like Philosophical literature, Photography, Social networking. And I am Romantic and Sentimental person to some extent. Read more...