بسم الله الرحمن الرحيم
لدي نسخة من سكربت الحجر شغال تمام
لكن يوجد مشكله عند التحميل (سواء كليك يمين وحفظ باسم او الضغط كليلك شمال ) يظهر رسال
يطلب حفظ الملف
![]()
لحتي الان اوكي ما في مشاكل
لكن عند الضغط على save
يقوم بحفظ ملف html بنفس اسم الملف الصوتي
![]()
كل المشكله تكمن بالتعديل بهذا الكود
فهل اجد لديكم القادر على مساعدتي وحل المشكله
لرؤية المشكلة هنا
http://www.alhajar.net/sound/showmaq-202-0.html
كود PHP:
//-----------------------------------------------------------------------------------------
function download()
{
global $DB;
$name = substr(strrchr($this->maq['dlink'],"/"),1,strlen(strrchr($this->maq['dlink'],"/"))-1);
header("Content-Disposition: attachment; filename=$name");
header("Accept-Ranges: bytes");
header("Pragma: no-cache");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-transfer-encoding: binary");
@readfile($link['dlink']);
//UPDATING STATS
$DB->query("UPDATE `tap` SET downloads=downloads+1 WHERE id='$this->maq[tap]'");
$DB->query("UPDATE `maq` SET download=download+1 WHERE id='$this->id'");
exit;
}
---------------------------
اخوكم
مـ . أحمد