Alberto Roura

Insert a file with PHP

26 April 20141 min read

PHP logo

There are situations in which we want to edit separately the content of a website instead to edit all in one file.

<?php include ''; ?>

For me, it’s more comfortable edit the files in parts. We can make a file like this:

<html lang="en">
    <?php include ''; ?>
<?php include ''; ?>

And that’s all the web. Now we can edit the parts.