Re: fetching a parameter from url like on php.net A mirarcle?
| From: | Andy | Date: | Sun, 31 Mar 2002 14:25:41 +0000 |
| Subject: | Re: fetching a parameter from url like on php.net A mirarcle? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90880@lists.php.net to get a copy of this message | ||
thanx
"Rasmus Lerdorf" <rasmus@lerdorf.ca> schrieb im Newsbeitrag
news:Pine.LNX.4.44.0203310131110.12007-100000@christine.ca...
> ErrorDocument 404 your_script.php
>
> then in your_script.php look at $REQUEST_URI
>
> Or stick a phpinfo() call there initially to see what is set.
>
> -Rasmus
>
> On Sun, 31 Mar 2002, Andy wrote:
>
> > Hi there,
> >
> > I am wondering how to get a parameter from url like on php.net Example:
> > php.net/functionname
> >
> > I guess this is a server config isn't it? The server would otherwise
asume
> > this is a file and return a 404 error.
> > How could I tell the server to run index.php if the file name is not on
the
> > server. And then .. how to get a 404 if
> > this is not a function, but really a not existant page?
> >
> > Maybe someone of the php.net team could uncouver the miracle :-)
> >
> > Thanx Andy
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>