errors not showing up in browser
Posted: Mon Jul 10, 2006 3:08 am
Hi,
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
Note that I have an html page that creats a var $x but prints x instead of $x.
when I call http://127.0.0.1/test.php from the browser I get:
but when I execute it from the command line using: php file.php
I looked in php.ini but couldn't find anything useful...
can anyone help?
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?