ZenphotoCMS Forum
URL file-access is disabled - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: URL file-access is disabled (/thread-1959.html)



URL file-access is disabled - pennylessz28 - 2007-12-21

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




URL file-access is disabled - sbillard - 2007-12-21

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

`




URL file-access is disabled - pennylessz28 - 2007-12-21

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.