[nycphp-talk] suppress errors in command line script
Dan Cech
dcech at phpwerx.net
Fri Nov 19 09:30:47 EST 2004
Marc Antony Vose wrote:
> hi there:
>
> i am trying to use the command line PHP on a server which i didn't set
> up. it's installed at /usr/bin/php, but whenever invoked, i get this:
>
> PHP Warning: Unknown(): Unable to load dynamic library
> '/usr/lib/php4/pgsql.so' - libpq.so.3: cannot open shared object file:
> No such file or directory in Unknown on line 0
>
> ok...so something wasn't compiled properly...apparently it can't find
> the postgresql library. i can deal with this later (maybe; i only have
> limited control here).
>
> anyway, this doesn't affect execution of my script, which i have tried
> invoking thusly:
>
> /usr/bin/php -q -d display_startup_errors=0 -d display_errors=0
> /path/to/script.php
try making your own copy of php.ini and doing:
/usr/bin/php -c /path/to/my/php.ini /path/to/script.php
Dan
More information about the talk
mailing list