| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
here's an example of index.php
<?php
include "./config/config.inc.php";
spl_autoload_register(function ($class) {
$path = $class;
if (DIRECTORY_SEPARATOR === '/') {
$path = str_replace('\\', '/', $class);
}
$include = HOME . ".." . DIRECTORY_SEPARATOR . $path . '.php';
if (file_exists($include))
require $include;
else
echo '<pre>' . $class . PHP_EOL . $include . PHP_EOL . 'not found' . '</pre>';
});
$router = new \system\Router();
$router->route();
?>
----
Server IP: 206.189.2.9
Probable Submitter: 2001:660:7220:385:193:52:103:33
----
Manual Page -- https://php.net/manual/en/mysqli-result.fetch-assoc.php
Edit -- https://main.php.net/note/edit/130586
Del: integrated -- https://main.php.net/note/delete/130586/integrated
Del: useless -- https://main.php.net/note/delete/130586/useless
Del: bad code -- https://main.php.net/note/delete/130586/bad+code
Del: spam -- https://main.php.net/note/delete/130586/spam
Del: non-english -- https://main.php.net/note/delete/130586/non-english
Del: in docs -- https://main.php.net/note/delete/130586/in+docs
Del: other reasons-- https://main.php.net/note/delete/130586
Reject -- https://main.php.net/note/reject/130586
Search -- https://main.php.net/manage/user-notes.php