Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: How many page scripts do we need?: msg#00027

cms.phpslash.devel

Subject: Re: How many page scripts do we need?

On Mon, 28 Apr 2003, Matthew Leingang wrote:

> Joe Stewart wrote:
> >
> >
> > In the past I have done this with mod_rewrite rules for the section
> > index pages, article pages and search results.
>
> 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.
>

I think that Jow was jsut saying that's how he's handled this in the past.
yes, you are correct in thinking this only works when you have confi file
access.

> > 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.
>

I don't understand why this needs to be an object. It'll get used
everywhere, it's probably best in functions.inc and let the individual
classes manage the storage of the variables.

> --Matt
> (invigorated from PHPCon East)
>

Rat bastid. I want a PHPCon South (or alternativly, I'd be nice to move
back to NYC :)

-n
--
------
nathan hruby
nathan-MSHXTcNGJzS8rjiVs5Nzzw@xxxxxxxxxxxxxxxx
------



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation