What I am trying to do is have a single php page load jokes from text files.
So if the id# in the url is 7, then joke file 7.txt will load into the page.
Example:
http://www.smartmindmedia.com/jokes/bar/index.php?id=10
This link would load text file 10.txt into the webpage.
This is the code I have been trying.
<?php
$content = file('http://www.smartmindmedia.com/jokes/bar/'.$_GET['id'].'.txt');
echo implode('', $content);
?>
I don't really get an error from this. The index.php page just won't load.
If I remove this section of code the index.php page loads fine, but obviosly without the text being displayed.
Thanks for your help.