note 111826 added to features.commandline.webserver

From: Date: Tue, 02 Apr 2013 14:55:11 +0000
Subject: note 111826 added to features.commandline.webserver
Groups: php.notes 
Request: Send a blank email to php-notes+get-194292@lists.php.net to get a copy of this message
File specified in 'auto_prepend_file' not include in router. Call in cmd to route request # php -S localhost:8000 router.php # router.php <?php // auto prepend if (($filename = ini_get('auto_prepend_file')) && $filename != 'none') { if (file_exists($filename)) { // absolute path include $filename; } else { // relative path foreach (explode(PATH_SEPARATOR, get_include_path()) as $path) { if ($file = realpath($path.DIRECTORY_SEPARATOR.$filename)) { include $file; break; } } } } // do route ... ---- Server IP: 69.147.83.199 Probable Submitter: 31.28.25.131 ---- Manual Page -- http://php.net/manual/en/features.commandline.webserver.php Edit -- https://master.php.net/note/edit/111826 Del: integrated -- https://master.php.net/note/delete/111826/integrated Del: useless -- https://master.php.net/note/delete/111826/useless Del: bad code -- https://master.php.net/note/delete/111826/bad+code Del: spam -- https://master.php.net/note/delete/111826/spam Del: non-english -- https://master.php.net/note/delete/111826/non-english Del: in docs -- https://master.php.net/note/delete/111826/in+docs Del: other reasons-- https://master.php.net/note/delete/111826 Reject -- https://master.php.net/note/reject/111826 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194292) next »