title: require_once doesn't work in command line
body: <pre><code>php /home/test9/public_html/degerlendir/test-4567.php "var1=18&amp;var2=22"
  </code></pre>
  
  <p>I need to run one page at background with cron job. I tested my code with command at above. But I get this error:</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/extensions/no-debug-non-zts-20100525/imagick.so' - /usr/lib64/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
  PHP Warning:  require_once(../config.php): failed to open stream: No such file or directory in /home/test9/public_html/degerlendir/test-4567.php on line 2
  PHP Fatal error:  require_once(): Failed opening required '../config.php' (include_path='.:/usr/lib64/php') in /home/test9/public_html/degerlendir/test-4567.php on line 2
  </code></pre>
  
  <p>The problem is page doesn't include <strong>config.php</strong> in the parent directory. The page working in browser normally. I tried to use different require_once variations like <strong>require_once ($_SERVER['DOCUMENT_ROOT']."/config.php")</strong>. I could not get it to work.</p>