October 23rd, 2000, 12:06 PM
I saw a site that used the GET method like this: http://www.bla.com/index.php/id/5
or something like that ... how is that possible to do that? i know it has a search engine advantage ...
October 23rd, 2000, 12:11 PM
use the server variable
named : $PATH_INFO
as far as i know it is
available under IIS in cgi-bin directory
and everywhere under apache
October 23rd, 2000, 12:18 PM
It's quite easy: everything after the file name is part of the query string. You can use explode(), substr() or other ways to generate variables available to your PHP script, but which look to the outside world like real directories.
In the end, it's not as powerful as mod_rewrite on Apache, but if you need a quick solution, there it is.
This is not the only method to do this. I think if you search this forum for "search engine", you will find quite a few good solutions. Also look for mod_rewite in the Apache forum.
October 23rd, 2000, 05:22 PM
it thinks index.php is a folder because of the "/" after it ...
I saw in a site that the "/" was considerd as a "?" in a standard GET request.
more details please..
October 24th, 2000, 11:39 AM
October 24th, 2000, 11:54 AM
There is a great section on this stuff in
"Web Application Development with PHP 4.0" from New Riders Press (written by: Ratschiller/Gerkin)
If I had more time, I would recap it, but if you can get to a bookstore and read the section on manual URL rewriting... starting on pg 126....