php - require_once doesn't work in command line -


php /home/test9/public_html/degerlendir/test-4567.php "var1=18&var2=22" 

i need run 1 page @ background cron job. tested code command @ above. error:

php warning:  php startup: unable 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 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 

the problem page doesn't include config.php in parent directory. page working in browser normally. tried use different require_once variations require_once ($_server['document_root']."/config.php"). not work.

cron jobs take full path of included file root.

/home/test/.../your-file


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -