Hello,
I have some question on how active pages works. Im trying to build a site that uses the galler extension in aegir.
Ive used an example that i found here on the mailinglist to create a simple active pages called images to easily link pics to pages.
To be able to extend that and write my own stuff i would like some info
on how active pages works compared to static. And how to use them.
In an active page the URL components after the page (that do not match any subpage of the active page) are passed as arguments to the page code, there are two variables:
$argc which contains integer count of the arguments
$arvg[] which contains the arguments in order, zero based key (so $argv[0] is the first argument and so on)
Example:
/activepage/first/second.html
here $argc=2, $argv[0]="first" and $argv[1]="second" (since .html and trailing slashes are always stripped)
This is especially usefull with dynamic content and mirroring (say loading an article based on ID or GUID [or name]) since you get nicer URLs than by passing the argument as GET parameter.
/Rambo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
