Forum Moderators: coopster

Message Too Old, No Replies

PHP GET variables as folders?

Use a folders in URL as variables

         

chriswragg

11:36 am on Jul 24, 2005 (gmt 0)

10+ Year Member



Is it possible to use folders as PHP variables, similar to PERL?

For example:

http://example.com/form.php/name/address/phone

Is is is possible to directly read these variables, or would you have to split up the URL?

Thanks for any help

Chris

mcibor

10:21 pm on Jul 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is possible, but with apache and .htacces. I've seen it somewhere here on this forum or apache forum. However I can't do it myself

I just remember it's a mod rewrite of url from www.example.com/folder to www.example.com/?url=folder

Sorry for not giving a straight away answer
Michal Cibor

chriswragg

9:15 am on Jul 25, 2005 (gmt 0)

10+ Year Member



Thanks mcibor

I found a thread about this in the Apache Forum. However, I am a novice when it comes to htaccess, and so am going to post a thread in the Apache forum.

Thanks for pointing me in the right direction

Chris

vincevincevince

10:24 am on Jul 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have a google for 'mod_rewrite generator'