PHP not working in XAMPP

前端 未结 6 2144

I have a problem running PHP in XAMPP 1.7.7 for windows. I\'ve installed XAMPP in a local server with IIS (changed the port to 81 in httpd.conf as well as other configuratio

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 18:49

    If I got your question correctly, I think I had the same problem accessing a php file in XAMPP. I have been online for several hours searching forums and Google for the answer, not until I found the simple solution.

    I was accessing the PHP file as a file on c drive (eg. C:\xamp\htdocs\data.php or file:///c:/xamp/htdocs/data.php) instead of as a webpage (ie //localhost/data.php).

    I hope this will be helpful to you as well.

提交回复
热议问题