Thanks guys. I have now changed the original php.ini file and it shows errors on a page. The old file has the code below.
After changing it, the new file looks like what is shown below.Code:Common Values: ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.) ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices) ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.) ; Default Value: E_ALL & ~E_NOTICE ; Development Value: E_ALL | E_STRICT ; Production Value: E_ALL & ~E_DEPRECATED ; http://php.net/error-reporting error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
And when I previewed my work below,Code:Common Values: ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.) ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices) ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.) ; Default Value: E_ALL & ~E_NOTICE ; Development Value: E_ALL | E_STRICT ; Production Value: E_ALL & ~E_DEPRECATED ; http://php.net/error-reporting error_reporting = E_ALL | E_STRICT
it shows the information below.Code:<html> <head> <title>Modern Day car dealers</title> </head> <body> <?php echo "<p>Welcome to Modern Day car dealers!</p>"; ?> <?php $carsInStock = array("Honda", "Volvo", "Ford", "Toyota"); $prices = array("$23,000", "$34,000", "$36,000", "$22,000"); echo "At Modern Day car dealers, a brand new" . " " . "$carsInStock[3]" . " " . " car costs only" . " " . "$prices[3]."; echo "<br />"; echo "$decoration"; ?> <?php echo $myvar; ?> </body> </html>
Code:Welcome to Modern Day car dealers! At Modern Day car dealers, a brand new Toyota car costs only $22,000. Notice: Undefined variable: decoration in C:\xampp\htdocs\menre\md.php on line 19 Notice: Undefined variable: myvar in C:\xampp\htdocs\menre\md.php on line 23




Reply With Quote