Why is echo output not printing on the screen? (Page is blank)

Asked

Viewed 67 times

0

Guys, can anyone tell me why when I log into my php file (localhost/test.php) nothing literally appears and everything goes blank? My file is ultra simple that I did just to test:

<?
 ini_set('display_errors', '1');
echo    "as";
?>
  • 1

    You won’t say that script is PHP with <?php,?

  • Dude, total ingenuity of mine, is because I’m starting with php here and I’m doing some tests ... Fight :)

1 answer

1


You didn’t start php the right way. It would be right:

<?php

ini_set('display_errors', '1');
echo    "as";

?>
  • 1

    My God ... I can’t believe it was that simple. Brawl bro :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.