How to debug Php code?

前端 未结 10 1906
臣服心动
臣服心动 2020-12-08 03:20

I am newbie on PHP. Here is my situation. I write my code in vim and put it under /var/www/ then I can use

localhost/*.php

10条回答
  •  情深已故
    2020-12-08 03:35

    You can check the log file output by PHP. A good way to see your configuration is to use phpinfo().

    Also you can set error_reporting() so you can see the error message instead of a white page.

提交回复
热议问题