what is difference between my code and tutorial code?
<p>I'm using PHP 5.2.3 but Tutorial's teacher using PHP 5.3 I'm writing same code but I can see only error.</p>

<p>Paths:</p>

<pre><code>Main
---index.php
---com
   ---User.php
</code></pre>

<hr>

<pre><code>&lt;?php

define('APPLICATION_PATH', realpath('../'));
$paths = array(
            APPLICATION_PATH,
            APPLICATION_PATH . '/com',
            get_include_path()
);
print_r($paths);
set_include_path(implode(PATH_SEPARATOR, $paths));

require_once('User.php');

$user = new User();
$user-&gt;getName();
</code></pre>

<p>Errors:</p>

<pre><code>Warning: require_once(User.php) [function.require-once]: failed to open stream: No such file or directory in C:\AppServ\www\advanced\index.php on line 11

Fatal error: require_once() [function.require]: Failed opening required 'User.php' (include_path='C:\AppServ\www;C:\AppServ\www/com;.;C:\php5\pear') in C:\AppServ\www\advanced\index.php on line 11
</code></pre>

<p><strong>Why my code is not running?</strong></p>

<p><img src="http://i.stack.imgur.com/Jmbg3.png" alt="enter image description here"></p>

<p>Maybe you need(User.php):</p>

<pre><code>&lt;?php 
Class User
{
    public function getName()
    {
        return "Ricardo Quaresma";
    }
}
?&gt;
</code></pre>

<p><strong>SOLVE: <a href="http://ideone.com/n77hE" rel="nofollow">http://ideone.com/n77hE</a></strong></p>
