I'm new to php and I've search this forum for this problem and the net but couldn't find anything useful.
I have php 5.1.4 and apache 2.2 installed on a linux fedora core 5 machine.
everything works fine except for errors not showing up in the browser.
I thought that php errors show up in the browser by default but I get nothing.
I created this file file.php
Code: Select all
<html>
<head>
<title> momo </title>
</head>
<body>
this is my html page <br>
<?php
print_r('dodo');
$x = 1;
print x;
?>
</body>
</html>when I call http://127.0.0.1/test.php from the browser I get:
Code: Select all
this is my html page
dodoxCode: Select all
<html>
<head>
<title> momo </title>
</head>
<body>
this is my html page <br>
dodoPHP Notice: Use of undefined constant x - assumed 'x' in /var/www/html/momo.php on line 10
x</body>can anyone help?