2013-05-06 3 views
0

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; 
?> 
+0

오류보고 기능이 있습니까? 서버 로그에 아무것도 있습니까? – andrewsi

+0

index.php에 아무 것도 표시되지 않는 오류가있어서 응용 프로그램에서 오류보고 기능이 해제되어 아무 것도 표시되지 않습니다. – raidenace

+1

' Cooper

답변

1

시도 (E_ALL)을 error_reporting를 한 후 다음 행을 추가;

ini_set("display_errors", 1); 
+0

아직도 아무것도 .. – Gannicus

+0

그냥 업데이 트가, 나는 Windows를 사용하고 있었고, 내가 찾은이 PHP 프로젝트는 내가 필요로하는 LDAP가 필요합니다. Windows에서 LDAP를 설치하는 방법을 알지 못했기 때문에 우분투를 사용하여 프로젝트를 열고 타다를 사용했습니다. – Gannicus

+0

위에서 주어진 세부 사항을 고려할 때 유일한 조치 과정이기 때문에 대답을 수락하십시오. – Gannicus

관련 문제