Member
Member
pennylessz28   2007-12-21, 07:22
#1

I'm just trying to use some php to include a menu in my theme, which I use everywhere else.

Been using this:

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

Member
Member
sbillard   2007-12-21, 13:15
#2

This is a server configuration setting.

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

`

Member
Member
pennylessz28   2007-12-21, 16:53
#3

oh, hadn't thought of that, here I'd been using my url.

That actually solved my problem, I just made it ../menu.php

Wow, I feel stupid now.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.