PHP script not running on browser

后端 未结 5 1793
温柔的废话
温柔的废话 2021-01-14 14:33

I have installed XAMPP server on my system to be able to use PHP. But after installation, when I run any php script on the browser it does not run. I do not see any ouput. N

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-14 14:55

    Your best bet is taking a look at your log files, and perhaps turning error reporting on. Put a simple script in your webroot that simply echo's a string, for example:

    with the above there is very little that can go wrong. Work from there. Take a look at your phpinfo, and see where your log files are located. Search for

    error_log
    

    for the path to your PHP error log file and maybe see if

    display_errors
    

    is on.

    This is something that has a multitude of possibilities that can be the cause of your problem.

提交回复
热议问题