Francois Dumais wrote:
> > In this case, and assuming the page is > > http://foo.org:80/foo/Geeks/Functions, > > you'd find your data as $argv = ("ffunky", "fcool"), $arg1="kiki", > > $arg2="koko". > > Then, how do you point to ffunky/fcool.html once you have accumulated your > variables? I mean, where are those variables, They are in the variables outlined above. If you want a reference to yourself, including path elements but not arguments after the ?, you can use $midgard->uri. If you want a reference to yourself, sans the path elements, use $midgard->self. For static pages, $midgard->uri == $midgard->self > how do you retrieve them, They're availabe in the global scope, under exactly the names as I outlined above. > what do you do with them, Whatever you like. No set meaning. > and how do you do something with them? The same way you would do with any PHP input variable, I guess. > I have > searched the manual to find anything about argv for ex. and there's > nothing. How do you implement the fact that ffunky/fcool.html is a > different page than ffunky/fhot.html? Since they are two different content, For an active page, they aren't. Everything after the url of the active page is just input to that one page. > what is the technique used to have these two different content appear? You'd have to act on the specific values in $argv to make different content appear. > I have tried to put "normal" and "active". In both case where I had a > "index" page, I could call it with either http://......./index/ and > http://....../index.html . In that case, "normal" and "active" don't make a > difference : both URL work the same. That is correct. > I just tried what you said and it > works also: the system won't be deceived if you are set to "active" and > having a URL with a /ffunky/fcool.html part whereas it would if you call the > same URL with a "normal" setting. I don't understand this. But to see a little of how active pages work, create an active page (like, e.g. /testactivepage/, note that the slashes are _not_ part of the pagename), with content <? echo $argc, " arguments<br>"; for ($i=0; $i<$argc; $i++) { echo "argv[$i]=", $argv[$i], "<br>"; } ?> and call it with /testactivepage/, /testactivepage/ffunky/fcool.html, /testactivepage/ffunky/fcool, /testactivepage/ffunky, etc. Emile --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
