Jump to content

display_errors = Off php.ini


nightkarnation

Recommended Posts

Hey guys, I have on my server, my php.ini file and I have set up display_errors = Off

 

I have created a simple php file to test this:

 

<?php

$client_ip = $_SERVER['REMOTE_ADDR']    // the ; <----- is not there on purpose, to receive the error below

echo $client_ip;

?>

 

PHP Parse error: syntax error, unexpected T_ECHO in E:\home\mysite\Web\IPtest.php on line 5

 

Parse Error shouldnt be displayed? or I am incorrect?

Do I need to disable something else on my php.ini file?

I just want more security and dont really know if display_errors = Off is working,

 

Any ideas or suggestions?

Thanks a lot in advance!

Cheers.

Link to comment
https://forums.phpfreaks.com/topic/217500-display_errors-off-phpini/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.