I'm just trying to use some php to include a menu in my theme, which I use everywhere else.
Been using this: <?php include("
http://mikekey.com/menu.php"); ?>
But I get this error on my gallery page: Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/mikekey/public_html/photos/themes/mk/index.php on line 15
Warning: include(
http://mikekey.com/menu.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/mikekey/public_html/photos/themes/mk/index.php on line 15
Warning: include() [function.include]: Failed opening '
http://mikekey.com/menu.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mikekey/public_html/photos/themes/mk/index.php on line 15
Comments
However, why do you want to include a file that is off on the internet? Your include function should be passed the local server path of the file. Someting like
`<?php include("myphpfiles/menu.php");`
That actually solved my problem, I just made it ../menu.php
Wow, I feel stupid now.