sourceforge.net에서 Employee Scheduler이라는 PHP 프로젝트를 다운로드했습니다. 문제는 index.php가 홈페이지로 생각되지만 localhost를 통해 액세스 할 때 아무 것도 표시되지 않는다는 것입니다. 내 컴퓨터에있는 다른 PHP 프로젝트는이 직원 스케줄러를 제외하고 액세스 할 때 작동합니다. 나는PHP 프로젝트의 색인 페이지에 아무 것도 표시되지 않음
로컬 호스트/스케줄러/index.php에
를 접속하시면 너무 올바른 폴더에 액세스 심지어 같은 디렉토리에 테스트 PHP 파일을 생성하고 접근하고 확신합니다. 테스트 PHP 파일이 작동하고 index.php 여전히 아무것도 표시되지 않습니다. 여기에 무슨 문제가있을 수 있습니까?
Windows 7 컴퓨터에서 WAMP를 사용하고 있습니다.
편집 :
내가 PHP 파일의 첫 번째 줄에 error_reporting(E_ALL);
포함했다,하지만 여전히 아무것도 출력하지 않습니다. 뭐라 구요?
여기의 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