Prado\Web\THttpRequest::getApplicationFilePath PHP Method

getApplicationFilePath() public method

public getApplicationFilePath ( ) : string
return string application entry script file path (processed w/ realpath())
    public function getApplicationFilePath()
    {
        return realpath(isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : null);
    }

Usage Example

Example #1
0
 public function testGetApplicationFilePath()
 {
     $request = new THttpRequest();
     $request->init(null);
     self::assertEquals(__FILE__, $request->getApplicationFilePath());
 }