Gianni Pirini wrote:
Hello !!
First of all, sorry for my english...
I've one question, what is a reasonable max number of case block in a switch
steatment?
If i want to redirect 300 pages, for example, to one page index.php?id=32
and include in this page, in base of the id value, 300 different pages, i
can have some problem or not ?
If mod_rwwrite wasn't suitable, I'd use a lookup table:
$callFunc = array(
32 => 'ShowIndex',
92 => 'InputForm',
);
if (isset($callFunc[$_GET['id']]) and
function_exists($callFunc[$_GET['id']])) {
$func = $callFunc[$_GET['id']];
$retval = $func();
}
Alister
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php