开发者

PHP error don't display on Opensuse 11 Firefox

开发者 https://www.devze.com 2023-03-05 18:41 出处:网络
On opensuse 11, Firefox isn\'t displaying php errors.For exemple, I have correct.php and broken.php :

On opensuse 11, Firefox isn't displaying php errors. For exemple, I have correct.php and broken.php :

correct.php
<?php echo("test"); ?>

broken.php
<?php echo("toto ?>

Loading correct.php, displaying "test"

Loading broken.php, displaying "test" agai开发者_JAVA百科n

In fact, the loaded page seems the same.

I tried on Windows 7 Firefox and it's showing :

PHP Parse error: syntax error...

My PC is on Opensuse, I borrowed the Windows one to test this thing...

And I don't have access to the server (only a ftp on a sub-folder of the website)

Thanks a lot if you help me, if you don't thanks anyway cause stackoverflow's helping me a lot (even without asking 8D )

edit : If I'm going to broken.php with a link (), the URL isn't changing on OpenSuse FF, on Windows FF it's going to the page with the php error


at the php.ini check if the display_error = on if not change it to on then restart the web server then try again


Try putting this at the top of your file:

error_reporting(E_ALL);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号