Cannot use php in any other files
<p>So I have two php classes, one is a class, one uses the other, my class is:</p>

<p>(menu.php)</p>

<pre><code> &lt;?php
public class Menu
{
        $home = '&lt;li&gt;&lt;a href="index.html"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;';
        $home_selected = '&lt;li class="navhome"&gt;&lt;a href="index.html"&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/li&gt;';

        $projects = '&lt;li&gt;&lt;a href=""&gt;&lt;span&gt;Projects&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;';
        $projects_selected = '&lt;li class="navhome"&gt;&lt;a href=""&gt;&lt;span&gt;Projects&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;';

        $contact = '&lt;li&gt;&lt;a href=""&gt;&lt;span&gt;Contact Us&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;';
        $contact_selected = '&lt;li class="navhome"&gt;&lt;a href=""&gt;&lt;span&gt;Contact Us&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;';

        public function getMyMenu($value)
        {
                switch($value) {
                        case "home":
                                return (string) $home_selected . $projects . $contact;
                                break;
                        case "projects":
                                return $home . $projects_selected . $contact;
                                break;
                        case "contact":
                                return $home . $projects . $contact_selected;
                                break;
                }
        }

}
?&gt;
</code></pre>

<p>however, in index.php, where ever </p>

<pre><code>&lt;?php include("menu.php"); 
      $menu = new Menu();
      echo($menu-&gt;getMyMenu("home")); ?&gt;
</code></pre>

<p>or any variation of this is put, the web page just wont load after that, for example if it is put in the middle of the page, the end of the page isn't even sent to the browser.</p>

<p>I'm very new to php, and I'm hoping this is a "duh" answer, if you need more please ask; thanks</p>
