-11

I am having trouble with this piece of code below. Whenever I run this file from browser it shows me the empty. But I want to display error in browser

<?php
echo "hello satya"
?>
Makyen
  • 29,855
  • 12
  • 76
  • 115
satya
  • 1
  • 1

2 Answers2

1

You can Try Adding This on top of your php file:

error_reporting(E_ALL);
ini_set('display_errors', '1');
PHP Geek
  • 3,810
  • 1
  • 12
  • 27
0

In your php.ini file,Change this

error_reporting = E_ALL | E_STRICT
display_errors = On
html_errors = On

Or, In PHP Code,Add

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 'On');
TarangP
  • 2,682
  • 5
  • 20
  • 37