即使在xampp文件夹的htdocs文件夹中粘贴php文件,浏览器显示404资源未找到错误


Browser shows 404 Resource not found error even after pasting php file in htdocs folder in xampp folder

我已经安装了xampp并将浏览器配置为侦听端口8000。我使用。php扩展名保存文件,选择所有文件选项,同时保存并将其保存在htdocs文件夹中。当我使用localhost'mypage.php时,它仍然显示资源未找到错误。

将代码复制到记事本中,并将文件放在htdocs文件夹中,然后在netbeans中打开它,它运行正常