[英]Xampp do not open php page
I've a index page in a PHP format (index.php), but I can't open it with XAMPP. 我有一个PHP格式的索引页(index.php),但是无法使用XAMPP打开它。
If I type the path of the page ( http://localhost/projectfolder/index.php ) it says object not found
. 如果我键入页面的路径( http://localhost/projectfolder/index.php ),则表示
object not found
。
But instead if I type the path of a HTML page that is in the same folder it works. 但是,如果我键入位于同一文件夹中的HTML页面的路径,它将起作用。 The paths are both correct.
路径均正确。
I don't know what is the problem, I hope anyone could help me. 我不知道这是什么问题,希望任何人都可以帮助我。
Assuming you have installed xampp in C:\\xammp 假设您已经在C:\\ xammp中安装了xampp
You need to place you file inside c:\\xampp\\htdocs\\file.php for the file to work 您需要将文件放置在c:\\ xampp \\ htdocs \\ file.php中,文件才能正常工作
then open it on you browser as 然后在浏览器上以
localhost/file.php 本地主机/file.php
The error were in this code line <?php require "scripts/session.php"; ?>
错误在此代码行
<?php require "scripts/session.php"; ?>
<?php require "scripts/session.php"; ?>
thanks anyone <?php require "scripts/session.php"; ?>
谢谢任何人
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.