Problem with errors
Moderator: General Moderators
Problem with errors
For some reason, whenever my PHP code hits an error, my server refuses to send back anything! i check the php.ini file and error_reporting is set to E_ALL, so im kind of at a loss as to why this doesnt work. The way i test this is leaving out a semi color and it stops returning stuff. This is a standard PHP installation on a brand new Fedora Core 3 installation. the version is 4.3.9 (ill probably update to 11 soon)
any ideas as to what could be causing this?
any ideas as to what could be causing this?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
thanks alot, that helped a bit. i set display_errors and display_startup_errors both to On, however i am still having a problem with errors. certain things work now. for example, if i type in
it says "Notice: Use of undefined constant blah - assumed 'blah' in /var/www/html/index.php on line 9" but if i type in something like
it still gives me nothing
heres my phpinfo if it helps: http://69.138.202.36/
Code: Select all
<?php
blah
?>Code: Select all
<?php
$test = "blah" //Missing semicolon
?>heres my phpinfo if it helps: http://69.138.202.36/
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
*scratches head*
Can you post a link to phpinfo() on your server (by PM if you don't want to post publicly)?
Also post a link to a file containing only:
Can you post a link to phpinfo() on your server (by PM if you don't want to post publicly)?
Also post a link to a file containing only:
Code: Select all
<?php
$var = 'String';
$var .= 'Foo' //Missing semi-colon
?>- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Take a backup of your existing php.ini and try this (Just temporarily for 5 mins for troubleshooting reasons). I hope I've removed all the extensions you won't have on *nix and and windows specific paths 
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia