473,406 Members | 2,713 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,406 software developers and data experts.

Display errors off problem?

I have a public site that creates biorhtym charts using Php.

I have put the following in my php.ini file in case of unforeseen
errors/warnings:
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = php_error.log

Every once in a while I get an entry in my Apache access log file from
someone clicking on the link in a Php warning message - a warning that
should not appear because of the above.

Like, this warning:
PHP Warning: mysql_connect() [<a
href='function.mysql-connect'>function.mysql-connect</a>]: Access denied
for user .......

I get a 404 error when they click on the [bad] link to
function.mysql-connect.

Of course, I should find the bug that causes this and get rid of it, but
how can that link appear on the page if I have display_errors = Off?

What I think I'm really asking is; can display_errors be hacked somehow?

And I guess I also have to ask, why is that bad link put into the
warning message in the first place?

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*****************************
Nov 19 '06 #1
2 3464
Hi,

Hrmm, if you haven't already maybe it might be good to verify that
display_errors is truly off, by looking at the phpinfo() output
(Configuration -PHP Core) on the same page that displays the error...

Chuck Anderson wrote:
I have a public site that creates biorhtym charts using Php.

I have put the following in my php.ini file in case of unforeseen
errors/warnings:
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = php_error.log

Every once in a while I get an entry in my Apache access log file from
someone clicking on the link in a Php warning message - a warning that
should not appear because of the above.

Like, this warning:
PHP Warning: mysql_connect() [<a
href='function.mysql-connect'>function.mysql-connect</a>]: Access denied
for user .......

I get a 404 error when they click on the [bad] link to
function.mysql-connect.

Of course, I should find the bug that causes this and get rid of it, but
how can that link appear on the page if I have display_errors = Off?

What I think I'm really asking is; can display_errors be hacked somehow?

And I guess I also have to ask, why is that bad link put into the
warning message in the first place?

--
*****************************
Chuck Anderson · Boulder, CO
http://www.CycleTourist.com
*****************************
Nov 19 '06 #2
petersprc wrote:
Hi,

Hrmm, if you haven't already maybe it might be good to verify that
display_errors is truly off, by looking at the phpinfo() output
(Configuration -PHP Core) on the same page that displays the error...
I hadn't bothered, but I just did and display_errors is Off.
Chuck Anderson wrote:
>I have a public site that creates biorhtym charts using Php.

I have put the following in my php.ini file in case of unforeseen
errors/warnings:
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = php_error.log

Every once in a while I get an entry in my Apache access log file from
someone clicking on the link in a Php warning message - a warning that
should not appear because of the above.

Like, this warning:
PHP Warning: mysql_connect() [<a
href='function.mysql-connect'>function.mysql-connect</a>]: Access denied
for user .......

I get a 404 error when they click on the [bad] link to
function.mysql-connect.

Of course, I should find the bug that causes this and get rid of it, but
how can that link appear on the page if I have display_errors = Off?

What I think I'm really asking is; can display_errors be hacked somehow?

And I guess I also have to ask, why is that bad link put into the
warning message in the first place?

--
*****************************
Chuck Anderson · Boulder, CO
http://www.CycleTourist.com
*****************************


--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Everyone's journey should be different,
so that we all are enriched
in new and endless ways
*****************************
Nov 19 '06 #3

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

Similar topics

12
by: austinJim | last post by:
IIS has quit displaying ASP errors it finds. Errors from SQL Server are displayed as are "page not found" errors but VBScript syntax errors are not. For example, the following code should give the...
1
by: Al Evans | last post by:
I'm sorry to barge right into a new newsgroup with a problem, but though I'm old to many things, I'm new to CSS. Here are two web pages. Apparently, they don't display correctly in IE6 under...
3
by: Steve - DND | last post by:
I was wondering if anyone can point me to some articles or practices they use for dealing with errors in their applications; particularly in an n-tier design. I am trying to find one way to...
2
by: ruby_bestcoder | last post by:
Hi Im having problem in firefox with display:none/block. I have essentially 3 li elements. In each element there are a few nested div:s. Clicking on one of the divs, makes another div to...
2
by: * Tong * | last post by:
Hi, I'm wondering if you can show me an example php page that allows me to retrieve and display 3rd party pages. I.e., when my php script is called as http://site/path/getit.php?file_key it...
18
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
4
ak1dnar
by: ak1dnar | last post by:
Hi, I have created a PHP page that write down form data to mySQL table. Before i submit data I want to check the Input field, whether it has filled up or Not. the form should validate from the PHP...
1
by: nitinpatel1117 | last post by:
I have display errors set to on in my php configuration. i only want to turn of display errors on one particular page/script i have tried to use the set_ini() and error_reporting() functions,...
1
by: William Gill | last post by:
I hope I can state this clearly enough. I am redoing some of my html(php) forms. I'm trying to break things into three functions on a self processing php page: 1) show the form (and populate...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.