You're assuming there's a 'title' element present in the $_GET array. Also you don't want to do what you're trying to do if that page is going to be visible to anyone but yourself. all someone would have to do is pass a filename through the address bar and they could force your script to process or display files you really don't want them to be able to see.