|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Greetings, jerrygarciuh.
In reply to Your message dated Tuesday, January 22, 2008, 18:27:59, > 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. Why not fix Your scripts instead? -- Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru> |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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. jstucklex@attglobal.net ================== |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On Jan 22, 12:48 pm, AnrDaemon <anrdae...@freemail.ru> wrote:
> Greetings, jerrygarciuh. > In reply to Your message dated Tuesday, January 22, 2008, 18:27:59, > > > 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. > > Why not fix Your scripts instead? > > -- > Sincerely Yours, AnrDaemon <anrdae...@freemail.ru> The following script exhibits this problem. How would you suggest I fix it? #!/usr/local/bin/php <?php // nothing to see here ?> |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|