Re: i'm not sure of the question.

From: Date: Wed, 12 Jul 2000 18:03:44 +0000
Subject: Re: i'm not sure of the question.
Groups: php.dev 
Request: Send a blank email to php-dev+get-24378@lists.php.net to get a copy of this message
Addressed to: <jmh3@web2.webpipe.net> php-dev@lists.php.net ** Reply to note from <jmh3@web2.webpipe.net> Wed, 12 Jul 2000 13:21:58 -0600 (MDT) > > i have something i want to do but i dont know what it is called. > > lets say i have a url: > http://bob.com/path/to/stuff/artist/artistname > > ok this is what i want to do... i want to take whatever is in the > place of artist name and construct a webpage for that artist based on > information in the database. > > > that way the following urls: http://bob.com/path/to/stuff/artist/jill^„�Ä^¢k > y8Ùƒ > http://bob.com/path/to/stuff/artist/sam > http://bob.com/path/to/stuff/artist/bob > http://bob.com/path/to/stuff/artist/joe > > would produce a different page for each person depending on the url, > but woule have the same effect as > http://bob.com/path/to/stuff/artist/?name=jill > > is this possible. is there a better way to go about it? > First, this is not related to the development of PHP, and does not belong on this list. It would be better suited on php-general. If you have further comments on this, or other questions please use the proper list. For a list of alternate mailing lists see: http://www.php.net/support.php Yes, it is possible. There are two parts to the solution. First the 'directory' /to in your example URL's actually needs to be the php program. You need to add: <location /to> ForceType application/x-httpd-php </location> either in your httpd.conf for hte VirtualDomain, or maybe in a .htaccess file. This makes the php program named to run whenever someone hits a URL in that 'directory branch'. Second, once you have the ForceType in effect start with a php program that does a phpinfo() and look at the variables near the bottom of the report. You will find sevaral of them with various views of the URL that was entered. $PATH_INFO may be of interest, but look at them and find the best suited for your needs. If you have further questions, please post them on php-general. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com

« previous php.dev (#24378) next »