ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
throwException.php
Go to the documentation of this file.
1
<?php
2
chdir(
"./../../../"
);
3
require_once(
"Services/Init/classes/class.ilIniFile.php"
);
4
$ini
=
new
ilIniFile
(
"ilias.ini.php"
);
5
$ini
->read();
6
7
$http
=
$ini
->readVariable(
"server"
,
"http_path"
);
8
$http
= preg_replace(
"/^(https:\/\/)|(http:\/\/)+/"
,
""
,
$http
);
9
10
$_SERVER
[
'HTTP_HOST'
] =
$http
;
11
$_SERVER
[
'REQUEST_URI'
] =
""
;
12
13
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
14
ilInitialisation::initILIAS
();
15
16
throw
new
Exception
(
"This is your error message"
);
$ini
$ini
Definition:
throwException.php:4
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
throwException.php:10
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:949
$http
$http
Definition:
throwException.php:7
ilIniFile
INIFile Parser.
Definition:
class.ilIniFile.php:37
Exception
Services
Logging
Testrail
throwException.php
Generated on Sat Jan 18 2025 19:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)