Re: ?=something

From: Date: Wed, 17 Oct 2001 17:41:50 +0000
Subject: Re: ?=something
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71363@lists.php.net to get a copy of this message
On Wed, 17 Oct 2001, Alex Shi wrote: > Well I know my question is deinately biased from this list, but your > question do recall me something: one time I even saw a url like this: > http://www.myweb.com/mypage.html?yes > > How could a parameter be passed to a .html, and how could a value be > passed without a name? a) Any extension can be setup to do anything, such as parse PHP. Here's an example from httpd.conf : AddType application/x-httpd-php .php .php3 .html .parsemephp .blah All those will parse php. Most likely you can use .htaccess too, depending on your server is setup. b) All the "stuff" after the ? is the Query String so you could use the predefined variable $QUERY_STRING : print $QUERY_STRING; In your example, that will print 'yes' This can be rather limiting approach though, consider other means. The following may seem helpful : Building Dynamic Pages With Search Engines in Mind http://phpbuilder.com/columns/tim19990117.php3 http://phpbuilder.com/columns/tim20000526.php3 Also check phpinfo() for available predefined variables and plan accordingly. phpinfo kicks ass! Predefined Variables http://www.php.net/manual/language.variables.predefined.php And for the strong at heart, check out mod_rewrite voodoo magic mod_rewrite http://httpd.apache.org/docs/mod/mod_rewrite.html http://www.engelschall.com/pw/apache/rewriteguide/ Have fun :) Regards, Philip Olson > > ----- Original Message ----- > From: "Kacey A. Murphy" <murphster47@hotmail.com> > To: <php-general@lists.php.net> > Sent: Wednesday, October 17, 2001 3:07 AM > Subject: [PHP] ?=something > > > > I have noticed some sites have a great way of putting there links to urls, > I > > always just put the normal link such as url=products.php is there a way to > > make a list of all the urls and direct them to like say they click on > > DOWNLOADS the url that will show on the url screen would be > > http://myweb.com/=?downloads but it is really going to > > http://myweb.com/downloads.php > > > > does that make sense??? I hope. Thanks > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#71363) next »