Re: Re: Submitting variables via /'s
| From: | John A. Grant | Date: | Tue, 09 Oct 2001 16:22:03 +0000 |
| Subject: | Re: Re: Submitting variables via /'s | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70508@lists.php.net to get a copy of this message | ||
"John A. Grant" <jazrant@zsc.nrcan.zc.ca> wrote in message
news:20011009143826.46757.qmail@pb1.pair.com...
> "Chris Hobbs" <chobbs@silvervalley.k12.ca.us> wrote in message
> news:3BC2219E.4040505@silvervalley.k12.ca.us...
[...]
> > http://www.zend.com/zend/spotlight/searchengine.php
>
> Thanks. That's very timely, because I was just setting up
> some pages with hardcoded "query" syntax. I will amend
> my code.
I read the article and I understand it, but I can't get it to work.
I coded my page using $PATH_INFO but when I tried to
access the page with my browser:
http://xxx.com/mypage.php/name/john/x/2
(to retrieve name=john and x=2), I received the following
error
"Warning: Failed opening '/mypage.php/name/john/x/2' for
inclusion (include_path='.:/usr/local/php/lib/php') in Unknown
on line 0
The page worked fine when it was:
http://xxx.com/mypage.php?name=john&x=2
More to the point, how does the server know that /john/x/2
is not a directory reference? Is it trying to locate page '2'
on the server?
--
John A. Grant * I speak only for myself * (remove 'z' to reply)
Radiation Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here