|
Posted by Jerry Stuckle on 01/23/08 00:15
jerrygarciuh wrote:
> On Jan 22, 1:05 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> jerrygarciuh wrote:
>>> On Jan 22, 9:29 am, ZeldorBlat <zeldorb...@gmail.com> wrote:
>>>> On Jan 22, 10:27 am, jerrygarciuh <jerrygarc...@gmail.com> wrote:
>>>>> Hello,
>>>>> I have a couple of PHP scripts I use via cron and from the CLI. They
>>>>> always produce warnings like
>>>>> PHP Warning: Module 'mysql' already loaded in Unknown on line 0
>>>>> PHP Warning: Module 'gd' already loaded in Unknown on line 0
>>>>> PHP Warning: Module 'zlib' already loaded in Unknown on line 0
>>>>> I have read all of the commandline flags docs and there does not
>>>>> appear to be a flag to silence these warnings.
>>>>> I currently call the scripts like so:
>>>>> /usr/local/bin/php -f /www/subsites/foo/htdocs/bar/baz.php >> /dev/
>>>>> null
>>>>> or
>>>>> /usr/local/bin/php -q /www/subsites/foo/htdocs/bar/baz.php >> /dev/
>>>>> null
>>>>> Any advice?
>>>>> TIA!!
>>>>> JG
>>>> Why not fix your PHP installation so those warnings don't happen?
>>>> It's always better to fix the problem rather than cover up the symptom.
>>> Thanks for the reply. Why do you assume I have root? I don't have
>>> the ability to alter the PHP install on this server.
>>> JG
>> Then you need to get whomever set it up to fix the problem.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
>
> So your response is that I cannot programmatically suppress these
> messages? Yes?
>
> JG
>
Nope. You can't.
Fix the problem. Don't try to hide it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
=================
[Back to original message]
|