-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
  • 27,758
  • 11
  • 68
  • 106
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
  • 2,822
  • 1
  • 11
  • 25
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,560
  • 5
  • 18
  • 35