PHP If / Elseif Statement Not Working Correctly
<p>I have a simple if statement that works on my local machine but when i uploaded it tom ypaid site i got an error on my home page.</p>

<p>Error:</p>

<pre><code>Warning: include(./pages/.php) [function.include]: failed to open stream: No such file or directory in /home/a5410474/public_html/index.php on line 33
Warning: include() [function.include]: Failed opening './pages/.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a5410474/public_html/index.php on line 33
</code></pre>

<p>The Code:</p>

<pre><code>&lt;?php
    if (isset($_GET['p']) &amp;&amp; $_GET['p'] != NULL || $_GET['p'] != '') {
        $p = mysql_real_escape_string($_GET['p']);
    }elseif ($_GET['p'] == '' || $_GET['p'] == NULL){
        $p = 'home';
    }
include("./pages/".$p.".php");
?&gt;
</code></pre>
