I have over 100 poems in a directory, instead of making a file for each and every poem. I wanted to have one php file, 'view.php'.
And define which poem to include by the url. like;
"view.php?poem=2.txt"
Will I have to define each one in my code? Like;
view.php?poem=2
$2 = 'poems/2.txt';
If anyone could give any ideas how to do this? Or the correct way it would be greatly appreciated.