agh! include program!
Posted: Tue Jun 25, 2002 8:51 pm
<?
$ext = ".php";
$id = "".$id."".$ext."";
if (file_exists($id))
{
include($id);
} else {
include ("404.php");
}
?>
if i have this ^ to get rid of having to type
mysite.com/root.php?id=main.php
it messes my website up.
like when i try to do this:
http://mysite.com/root.php?id=download/ ... file=1.zip
it always shows 404.php
$ext = ".php";
$id = "".$id."".$ext."";
if (file_exists($id))
{
include($id);
} else {
include ("404.php");
}
?>
if i have this ^ to get rid of having to type
mysite.com/root.php?id=main.php
it messes my website up.
like when i try to do this:
http://mysite.com/root.php?id=download/ ... file=1.zip
it always shows 404.php