php error : function tempnam() not run

หลังจากติดตั้ง module Audio (ซึ่งจะต้อง ติดตั้ง getID3() ด้วย) เมื่อ upload ไฟล์ mp3 มันแสดง eror ดังนี้

tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/www/virtual/aeawthatsong.com/:/usr/share/php/:/tmp/) in /home/www/virtual/aeawthatsong.com/htdocs/modules/audio/getid3/getid3/write.id3v2.php on line 84.

ผลก็คือทำให้ไม่สามารถ upload file ได้


โดยไปเปลี่ยน argument ของฟังชั่นใหม่ ใน file ที่เกี่ยวข้องทั้งหมด

(If your host refuses to fix their setup, you could search our code for every instance of tempnam(...,...) and replace it with tempnam("/home/tmp/upload", ...); )

getid3/module.audio-video.asf.php
getid3/module.audio-video.riff.php
getid3/getid3.php
getid3/module.audio.la.php
getid3/getid3.lib.php
getid3/write.vorbiscomment.php
getid3/write.metaflac.php
getid3/write.real.php
getid3/write.id3v2.php

ที่มา
http://forums.lifetype.net/viewtopic.php?p=33220&sid=ecd6e45290e06776998...


ดีจัง


ตั้งค่าการแสดงผลความคิดเห็น

Select your preferred way to display the comments and click "Save settings" to activate your changes.

แสดงความคิดเห็น

เนื้อหาของข้อมูลนี้ถูกรักษาเป็นความลับและไม่แสดงต่อสาธารณะ