Re: [PHP] intercepting URLs in a "control-system"

2003-10-17 Thread Mike Migurski
>If you are using PHP as an Apachemodule you also have the option of using >a url like >http://example.com/index.php/test/test.html >Apache will see that test.html is not available and will travel down the >directory path til it gets to the index.php (which should exist BTW) and >call that script.

Re: [PHP] intercepting URLs in a "control-system"

2003-10-17 Thread SLanger
Hello If you are using PHP as an Apachemodule you also have the option of using a url like http://example.com/index.php/test/test.html Apache will see that test.html is not available and will travel down the directory path til it gets to the index.php (which should exist BTW) and call that scr

Re: [PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Marek Kilimajer
Another option besides mod_rewrite is ErrorDocument directive in .htaccess: ErrorDocument 404 404.php In 404.php you trap the request, url will be in $_SERVER['REQUEST_URI'] Alan Lord wrote: Please forgive any obvious ignorances on my part, I am just learning PHP... Having read quite a bit on-l

RE: [PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Chris W. Parker
Alan Lord on Thursday, October 16, 2003 1:40 PM said: > Having read quite a bit on-line, I am interested in trying to "trap" > URLs sent to my site so I can process the request and respond without > neccessarily having a "real" page to serve. If this makes any sense,

Re: [PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Ray Hunter
> Having read quite a bit on-line, I am interested in trying to "trap" URLs > sent to my site so I can process the request and respond without > neccessarily having a "real" page to serve. If this makes any sense, how do > I do it? Because I expect that apache (in my case) would not like a URL tha

[PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Alan Lord
Please forgive any obvious ignorances on my part, I am just learning PHP... Having read quite a bit on-line, I am interested in trying to "trap" URLs sent to my site so I can process the request and respond without neccessarily having a "real" page to serve. If this makes any sense, how do I do it