PDA

View Full Version : Why Doesnt This Work?


Anzix
10-06-2003, 05:48 PM
<?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! :)

DirectAdmin Support
10-07-2003, 01:41 AM
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