יש יל 2 בעיות..
אחת אני רוצה קוד שאני יוכל לבדוק אם קישור כלשהוא תקין..
והשני:
יש לי את הקוד הזה:
PHP קוד:
<?php
session_cache_limiter('none'); //*Use before session_start()
session_start();
$file = $_GET["file"];
$newname= $_GET["file"];
_Download("http://zamir.votx.co.il/test", "test.mp3", "test.mp3");
function _Download($f_location,$f_name,$newname){
header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Length: ' . filesize($f_location));
header('Content-Disposition: attachment; filename=' . basename($newname));
readfile($f_location);
}
?>
אבל הוא עושה לי בעיות..
יש למישהו קוד שמפעיל הורדה?..
כי אני רוצה לעשות שזה יהיה הורדה ולא משנה מה יהיה הסיומת וזה הדרך היחידה איך שאני יודע..
נ.ב חלק מהקבצים על שרת אחר..