Click to See Complete Forum and Search --> : PHP Errors


spinnyscripter
10-11-2005, 06:14 PM
On my old server system it used to tell me what the error was, and now it doesnt can sombody help me in finding the problem. i have included my php.ini file un edited


Thanks :D

NogDog
10-11-2005, 06:50 PM
This is your current setting, as per the commment:

; - Show all errors, except for notices
;
error_reporting = E_ALL & ~E_NOTICE

If you want everything to be reported, delete the "& ~E_NOTICE" portion. If you are running PHP 5.x and want even more stuff reported, set it to "E_STRICT" instead of "E_ALL".

Or, if you don't want to mess with the php.ini settings, you can do it on a per script basis using the error_reporting() function (http://www.php.net/error_reporting).

spinnyscripter
10-11-2005, 07:02 PM
Nope didn't work,

PHP Script with verry simple to sopt error

<?php
echo test
echo test3;
?>


The HTML of the page in the browser

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>


screensho attatched

apache was restarted

i can also add my hosts file and my httpd.conf file if you want

spinnyscripter
10-11-2005, 07:09 PM
Apache/2.0.54 (Win32) mod_jk2/2.0.4 PHP/5.0.5

SpectreReturns
10-11-2005, 09:25 PM
I love the typo in your signature.

spinnyscripter
10-13-2005, 11:10 AM
thanks, SpectreReturns

UPDATE:

i have sorted this problem, it turned out that i also had a php.ini file in the root of my PHP files and renaming this to php.ini-old has stoped them not comming up.