Why Doesnt This Work?

Anzix

Verified User
Joined
Aug 17, 2003
Messages
39
Location
portland
<?php
if(strstr($page, "..") || $page[0]=="/") $page = "";
if(empty($page)) $page = "news.txt";
else { $page = $page . ".php"; }
if(is_file("$page"))
{
include("$page");
}
else echo "<b>404</b><br>Sorry n00b, This Page Isnt Done!";
?>

The including the news works but nothing else does.. Please help me! :)
 
Hello,

This forum is for DirectAdmin related questions and answers. Perhaps you can try google, or look at your apache error log for the problem.

John
 
Back
Top