I've made a test php shell script as a starting point for my script generator for my Cabbit framework. So i'll have a nice little folder full of scripts.
test
#!/usr/local/bin/php -q -i
<?php
$first_name = $argv[1];
print("Hello, $first_name how are you today?\n");
?>
Starting the script from my terminal
$ php script/test Jerry
Output plus errors.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_mysql.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_sqlite.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/php_pdo_sqlite.dll, 9): image not found in Unknown on line 0
Hello, Jerry how are you today?
Now my it seems the script does what it is meant to do, but i get back php warnings. I would love to know how to suppress these errors.