r2/binarycloud/base/core/Request.php
1) Added Method GetPathVar($_index, $_type)
Gets a variable value from path information. You need a webserver that
supports PATH_INFO to make use of this feauture. Note that you only can
fetch "values" so you have to provide the index of the value you need. i.e.:
www.foo.com/path/to/php/scriptname/100
| |
| +-- GetPathVar(1);
GetPathVar(0) --+
Note:
This method is still experimental and not fully tested in production
environments!!! Be careful if you're using it and please report
errors/problems.
2) Added class variables that initialized in the constructor, so that you
can directly access them without using GetVar() everytime.
var $scriptname; // SCRIPT_NAME of current request
var $phpself; // PHP_SELF
var $pathinfo; // PATH_INFO
var $scriptbase; // basename of SCRIPT_NAME
var $scriptpath; // basepath of current script
Andi
|