Re: [PHP] pathinfo or other

2012-02-17 Thread Simon Schick
Hi, Just to also add the discussion why mod_rewrite or PATH_INFO :) http://stackoverflow.com/questions/1565292/mod-rewrite-or-path-info-for-clean-urls Bye Simon 2012/2/17 Simon Schick > Hi, All > > I do not remember where I found the list of variables that are provided if > you load PHP using

Re: [PHP] pathinfo or other

2012-02-17 Thread Simon Schick
Hi, All I do not remember where I found the list of variables that are provided if you load PHP using Apache, nginx, IIS ... Fact is that there's a list of variables in the CGI 1.1 definition that should be given to a cgi script: http://tools.ietf.org/html/rfc3875#section-4 PATH_INFO is on the lis

Re: [PHP] pathinfo or other

2012-02-16 Thread Donovan Brooke
Elbert F wrote: SCRIPT_NAME is a server side path, try REQUEST_URI. This includes the query string but it's easy to remove. Elbert http://swiftlet.org Hi, I thought I should say that server side SCRIPT_NAME seems to be fine for me in this case. Thanks for the input. Donovan -- D Brooke

Re: [PHP] pathinfo or other

2012-02-15 Thread Elbert F
SCRIPT_NAME is a server side path, try REQUEST_URI. This includes the query string but it's easy to remove. Elbert http://swiftlet.org On Thu, Feb 16, 2012 at 8:27 AM, Donovan Brooke wrote: > Hello, > > What is the best way to get the /somedir/ values in the request URI? > > I tried > $t_pathi

[PHP] pathinfo or other

2012-02-15 Thread Donovan Brooke
Hello, What is the best way to get the /somedir/ values in the request URI? I tried $t_pathinfo = $_SERVER['PATH_INFO']; but was given an error of undefined index. After looking at the docs, it appears the error derives from something I may have to do in the .ini file. However, is there a st