|
From: Steve D. <sd...@wo...> - 2004-11-10 15:05:34
|
> * what is "import_request_variables("pg");" good for? At first sight I
> could not see any reason :-(
import_request_variables dumps all $_GET and $_POST variables to their
own variables. So if you have db.php?database=psa, a variable is
automatically set for querystring $database to value $psa. It's the
same as saying $_GET['database'], but without $_GET['...'] or $_POST['...'].
Also a cool thing you can do with it is prepend variable names to the
variables you're importing.
For example:
page: view.php?table=users&limit=50
code: import_request_variables("g", "psa_"); ("g" for get, "p" for post")
result: $psa_table = "users", $psa_limit = 50;
> * I like the "require_once "inc.header.php";", it was longely
> overdue :-)
>
> * I like the class, it's overdue as well
Well, like I said, there's still a lot I'm hacking on. Dont think of my
change as final at all. Transitional to say the least. :)
Steve
|