pkedpker Posted June 15, 2009 Share Posted June 15, 2009 I don't know how this process is called so I just gave example. some sites have like http://site.com/script/commands commands i believe are just like $_GET[]'s but they exist without being defined there is no = sign or anything how is that done? but they somehow people can do it like that. I know how to remove the .php from script making it just script.. and no commands isn't A FOLDER with a index.php thats what I thought too but it's not it the /commands could be anything such as /dsafdsfsdf and it will still get passed as a parameter to script.php.. can someone shed some light on this process? Link to comment https://forums.phpfreaks.com/topic/162198-solved-how-to-do-sitecomscriptparameters/ Share on other sites More sharing options...
Philip Posted June 15, 2009 Share Posted June 15, 2009 If you're running apache, it's called mod rewrite. http://www.workingwith.me.uk/articles/scripting/mod_rewrite Link to comment https://forums.phpfreaks.com/topic/162198-solved-how-to-do-sitecomscriptparameters/#findComment-855959 Share on other sites More sharing options...
haku Posted June 15, 2009 Share Posted June 15, 2009 To elaborate on that a little, the real URL will be something like: site.com?query=script/commands So by using mod rewriting, when you access site.com/script/commands, behind the scenes it accesses the URL I gave you above, and gives back the data from that page. Link to comment https://forums.phpfreaks.com/topic/162198-solved-how-to-do-sitecomscriptparameters/#findComment-856003 Share on other sites More sharing options...
pkedpker Posted June 15, 2009 Author Share Posted June 15, 2009 that could be it yup thanks for telling me it's called a mod_rewrite Link to comment https://forums.phpfreaks.com/topic/162198-solved-how-to-do-sitecomscriptparameters/#findComment-856007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.