I want to echo the CONTENTS of a file, but I want it to update automatically every time a new file is added to the directory.
I have this:
<?php
$homepage = file_get_contents('test.php');
echo $homepage;
?>
But how can i make it so that everytime a new file is added to the directory (PHP files) they get included?
Thanks SO much!
I have this:
<?php
$homepage = file_get_contents('test.php');
echo $homepage;
?>
But how can i make it so that everytime a new file is added to the directory (PHP files) they get included?
Thanks SO much!