public getScriptRequestPathAndFilename ( ) : string | ||
Résultat | string | Relative path and name of the PHP script as accessed through the web |
public function getScriptRequestPathAndFilename()
{
if (isset($this->server['SCRIPT_NAME'])) {
return $this->server['SCRIPT_NAME'];
}
if (isset($this->server['ORIG_SCRIPT_NAME'])) {
return $this->server['ORIG_SCRIPT_NAME'];
}
return '';
}