|
|
Choosing A Webhost: |
Re: How many page scripts do we need?: msg#00026cms.phpslash.devel
Joe Stewart wrote: On Fri, Apr 25, 2003 at 05:31:26PM -0700, Aric Caley wrote: I thought we were staying away from URL fanciness because (theoretically) not all PSL users have access to http.conf or .htaccess files. Maybe that's an imagined memory. Most of the changes could be made in the templates. How true that is now days, I don't know. I've been thinking about something for a long time, and this looks like a good time to bring it up. What about getting all URLs out of the templates and objectifying them? A url object would be able to parse $QUERY_STRING and/or $PATH_INFO and decode it. It would also have a toString method which output would go into the templates. $url = new PslUrl(); $url->setPath("/index.php"); $url->setVar("foo","bar"); $url->toString() // returns index.php?foo=bar, but if we use a different URL scheme, $url->toString() would return index.php/foo/bar or /foo=bar or whatever. Any URL object should be able to understand and encode its own get variables. Then we can provide a choice of URL encoding schemes: the basic one with ? and & and = which needs no .htaccess, or something fancier which does. A call AddClassReplacement makes the choice If you're going "all the way up to index.php", then the url object does all the deciding of what page is actually being requested. --Matt (invigorated from PHPCon East) -- ---------------------------------------------------------------- Matthew Leingang http://www.math.rutgers.edu/~leingang Rutgers University leingang-6qgHfRFg60h+CIkdHa1UOg@xxxxxxxxxxxxxxxx Department of Mathematics "This signature needs no quote." ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How many page scripts do we need?, Joe Stewart |
|---|---|
| Next by Date: | Re: How many page scripts do we need?, nathan r. hruby |
| Previous by Thread: | Re: How many page scripts do we need?, Joe Stewart |
| Next by Thread: | Re: How many page scripts do we need?, nathan r. hruby |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|