title: PHP difference between terminal and browser
body: <p>There is Neo4J installed on my Ubuntu and I'm running a test code. It's perfectly working when the code runs on terminal such as:</p>
  
  <pre><code>root@ekin-Inspiron-1090:/var/www# php neo.php
  home: demolished
  name: Arthur Dent
  </code></pre>
  
  <p>But when it comes to run on browser like localhost/neo.php, it gives fatal error and stops working.</p>
  
  <pre><code>Warning: require(phar://neo4jphp.phar): failed to open stream: operation failed in /var/www/neo.php on line 4 Fatal error: require(): Failed opening required 'phar://neo4jphp.phar' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/neo.php on line 4 
  </code></pre>
  
  <p>I don't think it's really something with Neo4J or its PHP driver. What should be the reason?</p>
  
  <p>edit: by the way, there are two php.ini files; i think one for apache and one for command line. I checked both of them and phar extension paths are the same. Also there are no include_path settings in both of them.</p>