살람 모든 몸PHP 내부 서버 오류
나는이 스크립트를 fatcow에서 호스트하지만 "내부 서버 오류"를 표시합니다.
<?php
create_image();
exit();
function create_image()
{
// Set the content-type
// Create the image
$im = imagecreatefrompng('coupon.png');
// Create red color
$red = imagecolorallocate($im, 120, 20, 20);
//get font arail
$font = 'font/arial.ttf';
// Insert variables into coupon
imagettftext($im, 36, 0, 176, 695, $red, $font, $_POST['Tdesc']);
imagettftext($im, 36, 0, 176, 985, $red, $font, $_POST['Tclient']);
imagettftext($im, 40, 0, 176, 1145, $red, $font, $_POST['Texpire']);
imagettftext($im, 42, 0, 176, 1355, $red, $font, $_POST['Toffre']);
imagettftext($im, 55, 0, 1796, 422, $red, $font, $_POST['Tcommande']);
imagettftext($im, 36, 0, 1488, 1000, $red, $font, $_POST['Tadresse']);
imagettftext($im, 36, 0, 1488, 1290, $red, $font, 'Tél. '. $_POST['Ttel']);
imagettftext($im, 60, 0, 1488, 1590, $red, $font, $_POST['Tvaleur']);
imagettftext($im, 60, 0, 1488, 1840, $red, $font, $_POST['Tcode']);
// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);
}
?>
그리고 오류 메시지 : 여기
스크립트입니다서버에 내부 오류 또는 잘못된 발생하여 요청을 완료 할 수 없습니다
내부 서버 오류 .
서버 관리자에게 문의하여 오류가 발생했음을 알리고 오류가 발생한 것일 수 있습니다.
이 오류에 대한 추가 정보는 서버 오류 로그에 있습니다.
여기에 PHP 로그가 도움이 될 것입니다. – vee
서버 로그 (예 : Apache 등)도 확인하십시오. –
함수를 먼저 선언하고 호출하려고 했습니까? –