Forum Moderators: coopster

Message Too Old, No Replies

making clean urls using PHP?

         

PHPycho

4:14 am on Sep 4, 2007 (gmt 0)

10+ Year Member



Hello forums!
I am bored with working with the url with query string urls ie("http://localhost/my_project/index.php?page=test&action=create").
Now i would like to work with clean urls like "http://localhost/my_project/test/create"
I would like to rewrite the url without using mod_rewrite module rather i would like to use PHP.
How to explode the urls to get the required parameters?
Note: I am working under the my_project folder
Any comments n suggestions are warmly welcome.
Thanks in advance to all of you.

PHPycho

8:49 am on Sep 4, 2007 (gmt 0)

10+ Year Member



how to enable $_SERVER['PATH_INFO'], it says undefined index PATH_INFO.

Habtom

9:06 am on Sep 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apache 2 users may use AcceptPathInfo = On inside httpd.conf to define PATH_INFO

$_SERVER [php.net]

Habtom