Page 1 of 1
Quick help
Posted: Wed Nov 20, 2002 4:37 pm
by Sevengraff
I know you guys normally want a more discriptive title than that, but i dont know what this thing is called
How can i set up a script so that it would be like this:
http://www.domain.com/[i]something[/i]
and something would be put into a value of a specific variable. Or ive also seen it where its like domain.com/?value. how does this work?
Posted: Wed Nov 20, 2002 5:40 pm
by hob_goblin
the /something is apache's rewrite rule, i think
the /?something can be accessed from the php variable $argv['0']
for instance, if the url was /?foobar, $argv['0'] would contain "foobar"
Posted: Wed Nov 20, 2002 5:48 pm
by JPlush76
beware, old versions of netscape(4+) and opera don't like that too much and reset you back to the index page.
Posted: Wed Nov 20, 2002 5:54 pm
by Sevengraff
thanks!
you said old versions of netscape and opera, where would i learn if the newer versions support it?
Posted: Wed Nov 20, 2002 5:55 pm
by JPlush76
well I was messing around with that and the new ie's and netscapes work right but the new opera still doesnt and version 4 and under of netscape.
I'm not sure where you can find out a listing of compatible browsers but thats what I experienced coding my ecommerce site.
Posted: Wed Nov 20, 2002 6:11 pm
by Sevengraff
i'll keep this in mind, thanks!