note 68785 added to function.include

From: Date: Thu, 10 Aug 2006 17:49:00 +0000
Subject: note 68785 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-115767@lists.php.net to get a copy of this message
I've got a question on how to make somthing work. I've got the following code: <? $navigation_menu['top']['Home']['url'] = "index.html" ?> and then I got this code which outputs the menus <? foreach($navigation_menu['top'] as $name => $link) { echo "<a href=\"{$link['url']}\">{$name}</a>"; } ?> how do i get the following to work in coordination wiht the above and load the pages dynamically: <? if(is_array($VirtualPage)) echo $VirtualPage['content']; elseif(file_exists("include/$Page.php"); include("include/$Page.php"); ?> ---- Server IP: 64.71.164.2 Probable Submitter: 71.227.164.199 ---- X-Spam-Status: No, hits=4.2 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_40_50,HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- https://master.php.net/note/edit/68785 Del: integrated -- https://master.php.net/note/delete/68785/integrated Del: useless -- https://master.php.net/note/delete/68785/useless Del: bad code -- https://master.php.net/note/delete/68785/bad+code Del: spam -- https://master.php.net/note/delete/68785/spam Del: non-english -- https://master.php.net/note/delete/68785/non-english Del: in docs -- https://master.php.net/note/delete/68785/in+docs Del: other reasons-- https://master.php.net/note/delete/68785 Reject -- https://master.php.net/note/reject/68785 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115767) next »