473,414 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

apache error log fills up with php notice:

apache error log:

/var/log/httpd-error.log

gets filled up with various notices such as:

php notice: Use of undefined constant name - assumed 'name' in xxxxx on
line 1, referer: yyyy

the size of the file is 200 mb now..

how do I suppress these notices without touching my php source code ?

Mike

Sep 16 '05 #1
2 4688
Mike,
apache error log:

/var/log/httpd-error.log

gets filled up with various notices such as:

php notice: Use of undefined constant name - assumed 'name' in xxxxx on
line 1, referer: yyyy

the size of the file is 200 mb now..

how do I suppress these notices without touching my php source code ?


What you could simply do is create a .htaccess environmental variable
with php_flag error_reporting E_ALL & ~E_NOTICE

In your php configuration you could set error_reporting to that value as
well.

I would also suggest that you fix the code that is giving the E_NOTICE
problems. Your problem with the use of an undefined constant is most
likely because you are using an array and not puting in the '.

For example you are doing: $array[index]
The correct way is: $array['index']

If you are inside of a string with "" use: {$array['index']}
--
Mike Willbanks
Zend Certified Engineer
http://www.digitalstruct.com
Sep 16 '05 #2
Worked well. Thanks.
Mike

Mike Willbanks wrote:
Mike,
apache error log:

/var/log/httpd-error.log

gets filled up with various notices such as:

php notice: Use of undefined constant name - assumed 'name' in xxxxx on
line 1, referer: yyyy

the size of the file is 200 mb now..

how do I suppress these notices without touching my php source code ?


What you could simply do is create a .htaccess environmental variable
with php_flag error_reporting E_ALL & ~E_NOTICE

In your php configuration you could set error_reporting to that value as
well.

I would also suggest that you fix the code that is giving the E_NOTICE
problems. Your problem with the use of an undefined constant is most
likely because you are using an array and not puting in the '.

For example you are doing: $array[index]
The correct way is: $array['index']

If you are inside of a string with "" use: {$array['index']}
--
Mike Willbanks
Zend Certified Engineer
http://www.digitalstruct.com


Sep 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
4
by: Patrick Masson | last post by:
Hello, Our configuration : Apache 2.0.53 PHP 5.0.4 PC Windows 2000 MATLAB 6.1 We work on a consulting project in France which involves MATLAB Web server,
1
by: sysxperts | last post by:
Hello, Having an issue that is specific to PHP compiled with PGSQL support with versions noted in subject line. I understand that there are many variables to consider here but believe I have...
0
by: Howard | last post by:
I have Apache Web Server 2.0.55 installed locally with MySQL 5.0.18-nt, and of course PHP 5.1.2 I also have installed phpMyAdmin. It is accessible through http://localhost/phpMyAdmin. The pathing...
3
by: madunix | last post by:
My Server is suffering bad lag (High Utlization) I am running on that server Oracle10g with apache_1.3.35/ php-4.4.2 Web visitors retrieve data from the web by php calls through oci cobnnection...
3
by: Sidu | last post by:
Ok well i'm still very new to apache, mysql, and php.. let me explain everything i have set up.. I have installed Appserv, for those of you who are unfamiliar with it.. it installs mysql, php,...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
0
by: Shalako | last post by:
Today was this second time this happened. It occured at 12:00AM on 7/14 and today 7/18 according to the application event viewer. The event viewer error says: The Apache service named reported...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.