26 ביולי 2023, 9:27

@אליהושש אינני מבין גדול בphp אבל נסה את זה

<?php
$myfile = "https://www.call2all.co.il/ym/api/RenderYMGRFile?token=*********:*****&wath=ivr2:/1/ApprovalAll.ymg&convertType=csv&notLoadLang=0&";
$file_contents = file_get_contents($myfile);

header("Content-Type: text/csv; charset=utf-8"); 
header("Content-Disposition: attachment; filename=000.csv");
header("Content-Length: " . strlen($file_contents));

echo "<html><head><title>הורדת קובץ </title></head><body><iframe src=$file_contents width=100% height=950></iframe></body></html>";
?>