Guys, i want to (in an easy way as possible) echo a file from a directory.
I was using this code:
$file = glob("/home/web/html/.");
echo $file[3];
This worked, it output:
/home/web/html/bleh.php
The problem is i dont want it to list the path, only the file, so it would just say "bleh.php".
Any ideas. Please keep it simple though.