Quick help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

Quick help

Post 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?
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post 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"
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

beware, old versions of netscape(4+) and opera don't like that too much and reset you back to the index page.
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

Post by Sevengraff »

thanks!
you said old versions of netscape and opera, where would i learn if the newer versions support it?
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post 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.
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

Post by Sevengraff »

i'll keep this in mind, thanks!
Post Reply