It"s not behaving. Error reporting, that is
It"s not behaving. Error reporting, that is
am 03.11.2009 17:11:15 von Philip Thompson
Hi all.
This seems like a trivial issue to fix, but I'm having issues. I'm
running a script via command line and it's throwing out PHP "notices."
Well, I want to suppress those notices. At the top of my script I have
the line...
error_reporting (E_ERROR);
?>
....thinking that this would get rid of the notices. However, it did
not. They still appear. I even attempted using ini_set(), but to no
avail. I then set error_reporting in php.ini - this made no
difference. (I shouldn't have to restart apache when running via
command line, but for giggles, I did.) I then changed display_errors
to Off. You guessed it - no change! This immediately brought up the
question... "Well, what php.ini is this script using?" Here's my
results...
[pthompson@s-irv-pthompson scripts]$ php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php.ini
Scan for additional .ini files in: /etc/php.d
....
Yup, according to PHP I'm using the correct ini. Now I'm at a loss.
Can anyone shed some light on this big brain fart I'm having? Thanks
in advance.
~Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: It"s not behaving. Error reporting, that is
am 03.11.2009 18:24:20 von Kim Madsen
Hi Philip
Try to post a link to a page, that prints phpinfo()
--
Kind regards
Kim Emax
Philip Thompson wrote on 2009-11-03 17:11:
> Hi all.
>
> This seems like a trivial issue to fix, but I'm having issues. I'm
> running a script via command line and it's throwing out PHP "notices."
> Well, I want to suppress those notices. At the top of my script I have
> the line...
>
>
> error_reporting (E_ERROR);
> ?>
>
> ...thinking that this would get rid of the notices. However, it did not.
> They still appear. I even attempted using ini_set(), but to no avail. I
> then set error_reporting in php.ini - this made no difference. (I
> shouldn't have to restart apache when running via command line, but for
> giggles, I did.) I then changed display_errors to Off. You guessed it -
> no change! This immediately brought up the question... "Well, what
> php.ini is this script using?" Here's my results...
>
> [pthompson@s-irv-pthompson scripts]$ php --ini
> Configuration File (php.ini) Path: /etc
> Loaded Configuration File: /etc/php.ini
> Scan for additional .ini files in: /etc/php.d
> ...
>
> Yup, according to PHP I'm using the correct ini. Now I'm at a loss. Can
> anyone shed some light on this big brain fart I'm having? Thanks in
> advance.
>
> ~Philip
>
--
Kind regards
Kim Emax - masterminds.dk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: It"s not behaving. Error reporting, that is
am 04.11.2009 15:52:47 von Philip Thompson
On Nov 3, 2009, at 11:24 AM, Kim Madsen wrote:
> Hi Philip
>
> Try to post a link to a page, that prints phpinfo()
>
> --
> Kind regards
> Kim Emax
>
> Philip Thompson wrote on 2009-11-03 17:11:
>> Hi all.
>> This seems like a trivial issue to fix, but I'm having issues. I'm
>> running a script via command line and it's throwing out PHP
>> "notices." Well, I want to suppress those notices. At the top of my
>> script I have the line...
>>
>> error_reporting (E_ERROR);
>> ?>
>> ...thinking that this would get rid of the notices. However, it did
>> not. They still appear. I even attempted using ini_set(), but to no
>> avail. I then set error_reporting in php.ini - this made no
>> difference. (I shouldn't have to restart apache when running via
>> command line, but for giggles, I did.) I then changed
>> display_errors to Off. You guessed it - no change! This immediately
>> brought up the question... "Well, what php.ini is this script
>> using?" Here's my results...
>> [pthompson@s-irv-pthompson scripts]$ php --ini
>> Configuration File (php.ini) Path: /etc
>> Loaded Configuration File: /etc/php.ini
>> Scan for additional .ini files in: /etc/php.d
>> ...
>> Yup, according to PHP I'm using the correct ini. Now I'm at a loss.
>> Can anyone shed some light on this big brain fart I'm having?
>> Thanks in advance.
>> ~Philip
>
>
> --
> Kind regards
> Kim Emax - masterminds.dk
That's all good and dandy. But this is a cli application. And besides,
the computer is not accessible via the Internet.
Thanks,
~Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: It"s not behaving. Error reporting, that is
am 04.11.2009 16:05:10 von Ashley Sheridan
--=-5e0qsXT1Y3K/KXxSSkxg
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Wed, 2009-11-04 at 08:52 -0600, Philip Thompson wrote:
> On Nov 3, 2009, at 11:24 AM, Kim Madsen wrote:
>
> > Hi Philip
> >
> > Try to post a link to a page, that prints phpinfo()
> >
> > --
> > Kind regards
> > Kim Emax
> >
> > Philip Thompson wrote on 2009-11-03 17:11:
> >> Hi all.
> >> This seems like a trivial issue to fix, but I'm having issues. I'm
> >> running a script via command line and it's throwing out PHP
> >> "notices." Well, I want to suppress those notices. At the top of my
> >> script I have the line...
> >>
> >> error_reporting (E_ERROR);
> >> ?>
> >> ...thinking that this would get rid of the notices. However, it did
> >> not. They still appear. I even attempted using ini_set(), but to no
> >> avail. I then set error_reporting in php.ini - this made no
> >> difference. (I shouldn't have to restart apache when running via
> >> command line, but for giggles, I did.) I then changed
> >> display_errors to Off. You guessed it - no change! This immediately
> >> brought up the question... "Well, what php.ini is this script
> >> using?" Here's my results...
> >> [pthompson@s-irv-pthompson scripts]$ php --ini
> >> Configuration File (php.ini) Path: /etc
> >> Loaded Configuration File: /etc/php.ini
> >> Scan for additional .ini files in: /etc/php.d
> >> ...
> >> Yup, according to PHP I'm using the correct ini. Now I'm at a loss.
> >> Can anyone shed some light on this big brain fart I'm having?
> >> Thanks in advance.
> >> ~Philip
> >
> >
> > --
> > Kind regards
> > Kim Emax - masterminds.dk
>
> That's all good and dandy. But this is a cli application. And besides,
> the computer is not accessible via the Internet.
>
> Thanks,
> ~Philip
>
You can call a phpinfo() script from the CLI, but I don't think that's
your problem here. Have you tried setting any other php.ini variables at
all and had any success with that?
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-5e0qsXT1Y3K/KXxSSkxg--
Re: It"s not behaving. Error reporting, that is
am 04.11.2009 16:20:29 von Nathan Rixham
Ashley Sheridan wrote:
> On Wed, 2009-11-04 at 08:52 -0600, Philip Thompson wrote:
>
>> On Nov 3, 2009, at 11:24 AM, Kim Madsen wrote:
>>
>>> Hi Philip
>>>
>>> Try to post a link to a page, that prints phpinfo()
>>>
>>> --
>>> Kind regards
>>> Kim Emax
>>>
>>> Philip Thompson wrote on 2009-11-03 17:11:
>>>> Hi all.
>>>> This seems like a trivial issue to fix, but I'm having issues. I'm
>>>> running a script via command line and it's throwing out PHP
>>>> "notices." Well, I want to suppress those notices. At the top of my
>>>> script I have the line...
>>>>
>>>> error_reporting (E_ERROR);
>>>> ?>
>>>> ...thinking that this would get rid of the notices. However, it did
>>>> not. They still appear. I even attempted using ini_set(), but to no
>>>> avail. I then set error_reporting in php.ini - this made no
>>>> difference. (I shouldn't have to restart apache when running via
>>>> command line, but for giggles, I did.) I then changed
>>>> display_errors to Off. You guessed it - no change! This immediately
>>>> brought up the question... "Well, what php.ini is this script
>>>> using?" Here's my results...
>>>> [pthompson@s-irv-pthompson scripts]$ php --ini
>>>> Configuration File (php.ini) Path: /etc
>>>> Loaded Configuration File: /etc/php.ini
>>>> Scan for additional .ini files in: /etc/php.d
>>>> ...
>>>> Yup, according to PHP I'm using the correct ini. Now I'm at a loss.
>>>> Can anyone shed some light on this big brain fart I'm having?
>>>> Thanks in advance.
>>>> ~Philip
>>>
>>> --
>>> Kind regards
>>> Kim Emax - masterminds.dk
>> That's all good and dandy. But this is a cli application. And besides,
>> the computer is not accessible via the Internet.
>>
>> Thanks,
>> ~Philip
>>
>
>
> You can call a phpinfo() script from the CLI, but I don't think that's
> your problem here. Have you tried setting any other php.ini variables at
> all and had any success with that?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
use -n to specify no ini file
-c /path/to/php.ini to specify and ini file
-d error_reporting=E_ALL to force the directive
and to check you can use
php -i | grep error_reporting
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php