Access control of page in php
Posted
by garcon1986
on Stack Overflow
See other posts from Stack Overflow
or by garcon1986
Published on 2010-06-10T12:40:55Z
Indexed on
2010/06/10
12:53 UTC
Read the original article
Hit count: 167
php
|switch-case
Hello,
I want to control the access in php website.
I have a solution right now with switch case.
<?php
$obj = $_GET['obj'];
switch ($obj)
{
case a:
include ('a.php');
break;
default:
include ('f.php');
}
?>
But when i have so many pages, it becomes difficult to manage them. Do you have better solutions?
Right now, i develop the application using php4. And i want to use php5. Do you have any suggestions when i develop it using php5?
Thanks
© Stack Overflow or respective owner