Re: $PATH_INFO
| From: | Data Driven Design | Date: | Tue, 27 Feb 2001 17:44:20 +0000 |
| Subject: | Re: $PATH_INFO | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41850@lists.php.net to get a copy of this message | ||
I already know that the second example works, I just wanted to know if the
first would before I try it on a live site.
Data Driven Design
PO Box 1084
Holly Hill, Florida 32117
http://www.datadrivendesign.com
http://www.rossidesigns.net
----- Original Message -----
From: "Sam Masiello" <smasiello@chekinc.com>
To: "Data Driven Design" <jeff@datadrivendesign.com>
Cc: <php-general@lists.php.net>
Sent: Tuesday, February 27, 2001 12:33 PM
Subject: Re: [PHP] $PATH_INFO
>
> I would have to be inclined to say that you couldn't do that. None of the
> examples that I have ever seen do it that way, and from a perspective of
> how a URL is built, how would the browser ever know that you are trying to
> access index.php/somevar/somevalue as opposed to thinking that "somevalue"
> is supposed to be the name of a page?
>
> I am sure someone will chime in if this is wrong, but I would doubt that
it
> is....of course, I guess the best way to find out is to try it :)
>
> --
> Sam Masiello
> Systems Analyst
> Chek.Com
> (716) 853-1362 x289
> smasiello@chekinc.com
>
> On 2001.02.27 11:10:57 -0500 Data Driven Design wrote:
> > I've got a page that I'm currently working on that grabs a couple of
> > variable from $PATH_INFO and uses them for db queries. The page is
> > currently
> > called content.php. My question is this, when I replace my index file
> > with
> > this will
> >
> > http://www.mydomain.com/somevar/someothervar
> >
> > be the same as
> >
> > http://www.mydomain.com/index.php/somevar/someothervar
> >
> > It could make things easier for me if it is.
> >
> > Data Driven Design
> > PO Box 1084
> > Holly Hill, Florida 32117
> >
> > http://www.datadrivendesign.com
> > http://www.rossidesigns.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
> >
>