![]() |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2003
Location: UK
Posts: 181
|
I am not getting errors in php...
and now its getting frustrating.
If I try to use the following code I should get an error message telling me I messed up around Matt PHP Code:
phpinfo() tells me that display_errors = on I've tried adding error_reporting(E_ALL); which don't know will make any difference but it doesn't seem to. on a side note phpinfo() says that the include_path = .;c:\php4\pear I don't if this is correct either way I can't seem to get PEAR working either. So how do I get my errors? |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Jan 2003
Location: UK
Posts: 181
|
ok that error problem fixed
adding line in php will change the setting from 1 to 2039 to show all errors: ini_set('error_reporting', "2039"); Now the PEAR problem at the moment the moment the include path to pear is appears to be incorrect. At the moment it says .;c:\php4\pear when I guess it should say d:\php4\pear or something. The error I get at the moment is: Fatal error: main(): Failed opening required 'DB.php' (include_path='.;c:\php4\pear') in d:\domains\macrodemon.com\wwwroot\test.php on line 9 So I guess that means either PEAR is located in another folder or it has not been installed with PHP. http://www.macrodemon.com/test.php
__________________
ASP.net is the reason why I am learning PHP Last edited by adam; 31-03-2006 at 01:22 AM. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|