1
나는 일부 파일을 변환 할 수 PhpPresentation을 구현하기 위해 노력하고있어, 그래서 나는 다음과 같은 코드가 500 서버 : 어떤 이유로 코드의 바로이 작품에 대한PHP 사용 키워드는 원인이되는 오류
use PhpOffice\PhpPresentation\src\PhpPresentation\PhpPresentation;
use PhpOffice\PhpPresentation\src\PhpPresentation\IOFactory;
use PhpOffice\PhpPresentation\src\PhpPresentation\Style\Color;
use PhpOffice\PhpPresentation\src\PhpPresentation\Style\Alignment;
500 내부 서버를 일으키는 오류. 오류보고가 모두 설정되었지만 오류는 표시되지 않습니다. 경로가 맞다, 내 루트 디렉토리 (public_html)와 해당 하위 폴더에 PhpOffice 폴더가있다.
편집 : 자동 로더 코드는이 방법을로드 :
require_once 'PhpOffice/PhpPresentation/src/PhpPresentation/Autoloader.php';
\PhpOffice\PhpPresentation\Autoloader::register();
require_once 'PhpOffice/src/Common/Autoloader.php';
\PhpOffice\Common\Autoloader::register();
실제 문제가 무엇인지 읽을 수있는 http 서버 오류 로그 파일을 살펴보십시오. – arkascha
대부분의 정의는 자동 로더에서 찾을 수 없습니다. – arkascha
'구문 오류, 첫 번째 사용 줄에 예기치 않은 '사용'이 표시됩니다. 여기 내 모든 기능 https://codeshare.io/aYAdzL – nikolay