hide php error details

Alles, was PHP betrifft, kann hier besprochen werden.

hide php error details

Postby msalahi » 28. March 2021 22:36

hi every one

how i can hide php error details from end users

i don't want the end users see my php error details

i modify in php.ini
display_errors = off

and i modify in .htaccess
php_flag display_errors off

but still the error display

Image
msalahi
 
Posts: 7
Joined: 01. December 2020 07:46
XAMPP version: 3.2.4
Operating System: windows

Re: hide php error details

Postby Altrea » 29. March 2021 09:16

What are the values for display_ertrors in phpinfo() at the line of code this error occurs?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: hide php error details

Postby msalahi » 29. March 2021 09:57

display_errors = Off

error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR

Code: Select all
; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off
msalahi
 
Posts: 7
Joined: 01. December 2020 07:46
XAMPP version: 3.2.4
Operating System: windows

Re: hide php error details

Postby Nobbie » 29. March 2021 11:42

That error in you image is NOT a common PHP Error message, it looks like an user triggered error message from the script, such messages are not affected by the standard PHP error handling. Ask the developer of the script how to suppress that message.
Nobbie
 
Posts: 13171
Joined: 09. March 2008 13:04

Re: hide php error details

Postby msalahi » 29. March 2021 18:46

i am create this website
and i want to hide this error or change the message display i don't want the user see details
msalahi
 
Posts: 7
Joined: 01. December 2020 07:46
XAMPP version: 3.2.4
Operating System: windows

Re: hide php error details

Postby Nobbie » 29. March 2021 21:52

Then dont show it, its not a PHP Error. Its an Oracle SQL Error. I have no idea about Oracle.
Nobbie
 
Posts: 13171
Joined: 09. March 2008 13:04

Re: hide php error details

Postby kiash » 07. August 2021 17:48

You can use XAMPP production php.ini file to hide error message. It is better to use production ini file to stop leaking security information to global users.
kiash
 
Posts: 3
Joined: 07. August 2021 08:02
XAMPP version: 11
Operating System: windows


Return to PHP

Who is online

Users browsing this forum: No registered users and 14 guests

cron