:Blob
05-06-2005, 09:40 AM
How do you make pages like www.domain.com/?=yesy
Mentor
05-06-2005, 09:59 AM
you would just set an include, inside an if statment thats there to detect wether yesy works "/ or if u wnated the
http://domain.com/index.php?page=thispage
like on thybag
<?php
$page = basename($page);
if(!$page)
include("start.php");
else
if(file_exists("$page.php"))
{
include("$page.php");
}
else
{
echo 'Page Does Not Exist ';
}
?>
then say
http://domain.com/index.php?page=thispag
would include the page thispag.php
or
http://domain.com/index.php?page=cat
cat.php
if you follow
:Blob
05-06-2005, 12:05 PM
I understand, thanks mentor
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.