Parse error: syntax error, unexpected T_PUBLIC in .....?
<p>I am new to php and trying out this tutorial at :</p>

<p><a href="http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/" rel="nofollow">http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/</a></p>

<p>Unfortunately I am getting the following error and can't seem to track down the reason:</p>

<pre><code>Parse error: syntax error, unexpected T_PUBLIC in ../simpleCMS.php on line 56
</code></pre>

<p>My code for simpleCMS.php is as is in the tutorial link above.</p>

<p>FYI, my line 56 is the following line of code in simpleCMS.php</p>

<pre><code>    public function display_admin() {
</code></pre>

<p>Above this line is public function display_public()</p>

<p>Can anyone possibly see what I could be doing wrong and again, my code is the same code from the tutorial website and have downloaded the files that came with it?</p>

<p>Hoping someone can point me in the right direction.</p>

<p>Furthermore, I am using Mac OS X MAMP to run my Apache/MySQL Server locally. My other question is, when I using the following command:</p>

<pre><code>mysql_connect($this-&gt;host,$this-&gt;username,$this-&gt;password) 
</code></pre>

<p>is my hostname 'localhost' alone or do I also have to include port alongside the localhost?</p>

<p>Thanks again.</p>
