Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query->execute();
- while ($row = $query->fetch(PDO::FETCH_ASSOC))
- {
- $uid = $row['uniqueid'];
- foreach(glob($path. "*". $uid. "*") as $file) {
- echo $file;
- // header("Content-Description: File Transfer");
- // header("Content-Type: application/octet-stream");
- // header("Content-Disposition: attachment; filename='" . basename($file) . "'");
- // readfile ($file);
- }
- }
- ?>
- [root@voip1 utils]# nano cdr.php && php cdr.php
- /var/spool/asterisk/monitor/2017/02/25/out-91342765-847-20170225-124355-1488044635.1367915.wav/var/spool/asterisk/monitor/2017/02/25/out-91342765-847-20170225-124450-1488044690.1367921.wav/var/spool/asterisk/monitor/2017/02/25/out-91342765-847-20170225-124551-1488044751.1367989.wav[root@voip1 utils]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement