Я загрузил php-проект из sourceforge.net с именем Employee Scheduler. Дело в том, что index.php должен быть домашней страницей, но ничего не отображается, когда я обращаюсь к нему через localhost. Другие проекты php, которые у меня есть на моем компьютере, работают, когда я обращаюсь к ним, за исключением этого планировщика сотрудников. Я уверен, что я доступ к нужной папке тоже, доступ к нему вСтраница индекса проекта php, не отображающая ничего
LOCALHOST/планировщика/index.php
и даже создать файл PHP теста в том же каталоге, и доступе к нему. Тестовый файл php работает, и index.php все еще ничего не показывает. Что может быть проблемой здесь?
Я использую WAMP на своем компьютере с Windows 7.
EDIT:
Я включил error_reporting(E_ALL);
на первой строке файла PHP, но он все еще не выводит ничего. Что дает?
я выложу содержание index.php здесь:
<?php
/*********************************************************
File: index.php
Project: Employee Scheduler
Author: John Finlay
Comments:
The home page for the site. Asks a user to login
and then redirects them to the appropriate section
for employees or supervisors
For site documentation and setup see the README.txt file
included with the distrobution package. If you did not
receive this file, it can be found at
http://empscheduler.sourceforge.net
Copyright (C) 2003 Brigham Young University
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
**********************************************************/
error_reporting(E_ALL);
require "es_functions.php";
//-- authenticate the user
$user = auth_user();
$url = "";
//-- if they are a supervisor then forward them to the supervisor home page
if (preg_match("/(Supervisor)|(Admin)/", $user["u_type"])) $url= "es_sup_index.php?".session_name()."=".session_id();
//-- forward to employee homepage
else $url = "es_emp_index.php?".session_name()."=".session_id();
header("Location: $url");
print_header("Welcome");
print_r($user);
print "<br /><br />If you are seeing this, your browser did not forward you to the correct page. Click <a href=\"$url\">here</a> to continue.<br />\n";
print_footer();
exit;
?>
У вас есть сообщение об ошибке? Есть ли что-либо в журналах сервера? – andrewsi
index.php имеет ошибку, которая заставляет его ничего не отображать, и приложение отключает отчет об ошибках, поэтому ничего не отображается – raidenace
добавьте это в первую строку после ' Php',' error_reporting (E_ALL) 'и запустите страницу и поставить ошибку здесь – Cooper