//$GLOBAL_includesPath = "http://localhost/smthing/";
<?
include_once $GLOBAL_includesPath.'global_menu.php';
?>
error:
Warning: include_once() [function.include-once]: http:// wrapper is
disabled in the server configuration by allow_url_include=0 in
C:\xampp\htdocs\smthing\includes\page_header.php on line 39Warning:
include_once(http://localhost/sthing/includes/global_menu.php)
[function.include-once]: failed to open stream: no suitable wrapper
could be found in C:\xampp\htdocs\smthing\includes\page_header.php on
line 39Warning: include_once() [function.include]: Failed opening
‘http://localhost/smthing/includes/global_menu.php’ for inclusion
(include_path=’.;C:\xampp\php\PEAR’) in
C:\xampp\htdocs\smthing\includes\page_header.php on line 39
Trust me, you do not want to include from URLs.
file_get_contents()If you don’t care and just want it to work (bad!), the error told you all you need: Eenable
allow_url_includein your php.ini.Otherwise, use
include_once('path/to/your/file/global_menu.php');