Page 1 of 1

trying to get dynamic menu to appear in other ares of a site

Posted: Fri Sep 28, 2007 1:25 pm
by scotch33
Hi,

I am trying to get the main site menu to appear in some pages that are not part of the CMSMS system.

I have created a page in the system that contains just the menu, and in a template where there is literally just a surrounding div.

I have called it using an include from elsewhere. 

This works fine 70% of the time, but on occasion I am getting the following error.  Is there a better way to do this or perhaps a way of checking for its availablilty before calling it and if its not playing, replacing it with something else.

I am aware that this is partly a PHP question, but thought as it may be something others would occasionally need to do, it was worth asking about in the forum.

The error is ...

Warning: include() [function.include]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/h/a/havebeengood/public_html/memberpages/login_process/login_process.php on line 46

Warning: include(http://www.havebeengood.com/index.php?page=menu) [function.include]: failed to open stream: Connection timed out in /home/h/a/havebeengood/public_html/memberpages/login_process/login_process.php on line 46

Warning: include() [function.include]: Failed opening 'http://www.havebeengood.com/index.php?page=menu' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/h/a/havebeengood/public_html/memberpages/login_process/login_process.php on line 46