안녕하세요!
영카트 주문내역을 출력하면 아래의 에러가 뜨는데 이유가 무엇인지 알 수 있을까요?
<b>Warning</b>: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/tmp:/home1/ddgpack) in <b>/home1/ddgpack/public_html/lib/Excel/php_writeexcel/class.writeexcel_worksheet.inc.php</b> on line <b>221</b><br />
<b>Warning</b>: fopen(): Filename cannot be empty in <b>/home1/ddgpack/public_html/lib/Excel/php_writeexcel/class.writeexcel_worksheet.inc.php</b> on line <b>222</b><br />
phpinfo 의 정보
sys_temp_dir / no value / no value
답변 2개 / 댓글 2개
채택된 답변
+20 포인트
https://www.php.net/manual/en/function.tempnam.php
tempnam(string $directory, string $prefix): string|false
tempnam() 사용할 때
$directory에 /data/ 등의 하위 폴더를 지정해 보세요.
답변을 작성하려면 로그인이 필요합니다.
서버측에서 설정을 해줘야 하지요?