![]() php helpage - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: php helpage (/showthread.php?tid=59638) php helpage by lordy on 05-22-2006 at 11:56 AM
I've seen one some sites and i swear i've read how to do it somewhere but i dont remember where, but you can access a page by going www.example.com/file.php/directory/blah RE: php helpage by Eljay on 05-22-2006 at 12:01 PM
$_SERVER['PATH_INFO'] = the /directory/blah thing, do with it what you will RE: php helpage by Ezra on 05-22-2006 at 03:11 PM I think you mean you want it like directory's instead of ? and &, I think you need mod_rewrite then RE: php helpage by J-Thread on 05-22-2006 at 09:25 PM
Yes, that's probably the best option, because $_SERVER['PATH_INFO'] isn't reliable (however, it will work on most servers). RE: php helpage by lordy on 05-22-2006 at 09:39 PM
can you explain to me why $_SERVER['PATH_INFO'] isn't reliable? RE: php helpage by J-Thread on 05-23-2006 at 10:10 AM http://www.php.net/manual/en/reserved.variables.p...d.variables.server RE: php helpage by Adeptus on 05-23-2006 at 02:40 PM
It looks like you are making a script that takes the path of the desired content from the URL, then sends that content to the client. While there are valid uses for that and it can be done safely, be careful or you will get in trouble. RE: php helpage by ipab on 05-23-2006 at 04:01 PM
I looked into this over the weekend for my site, coudn't do it properly, so I got dt to help RE: php helpage by TheSteve on 05-23-2006 at 11:15 PM
You can use the 'REQUEST_URI' server variable. code: See this implementation http://www.baxteronline.com/uriviewer.php/this/is/a/test RE: php helpage by lordy on 05-24-2006 at 12:48 AM
quote:I understand how to do it now, I just needed the info ![]() I understand what Adeptus is saying too, and I don't reall wan to risk that, so it looks like I should go with what I was going to do and try and make that section of my site database driven instead ![]() I've not done much with databases, so it will be a learning experience for me ![]() |