Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. $query->execute();
  2.  
  3. while ($row = $query->fetch(PDO::FETCH_ASSOC))
  4. {
  5. $uid = $row['uniqueid'];
  6.  
  7. foreach(glob($path. "*". $uid. "*") as $file) {
  8. echo $file;
  9.  
  10. // header("Content-Description: File Transfer");
  11. // header("Content-Type: application/octet-stream");
  12. // header("Content-Disposition: attachment; filename='" . basename($file) . "'");
  13.  
  14. // readfile ($file);
  15. }
  16. }
  17. ?>
  18.  
  19.  
  20. [root@voip1 utils]# nano cdr.php && php cdr.php
  21. /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