i got this code from here like a year ago, but i just now figured out why i couldnt get it to work i only have main.php and index.php in the root directory, all of my other pages are in other directorys such as downloads, images, thesite, and etc.
heres the code on main.php
<?php
if(!isset($_GET['id'])) {
include("index.php"); } else {
if(!file_exists($_GET['id'].".php")) {
include("404.php");
} else {
include($_GET['id'].".php");
}
}
?>
what i want it to do is to be able to find the files in the other directorys, but all it dose is find the files in the currnt directory i have about 10 directorys and about 200 php pages, and around 2000-3000 files total, and its around 70 mbs