public getApplicationFilePath ( ) : string | ||
Результат | string | application entry script file path (processed w/ realpath()) |
public function getApplicationFilePath()
{
return realpath(isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : null);
}
public function testGetApplicationFilePath() { $request = new THttpRequest(); $request->init(null); self::assertEquals(__FILE__, $request->getApplicationFilePath()); }