Advertisement
Guest User

sample code

a guest
Nov 5th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $callFileArray = array (
  5.   "Channel"=>"SIP/200",
  6.   "WaiteTime"=>"20",
  7.   "Context"=>"test",
  8.   "Extension"=>"1",
  9.   "Priority"=>"1",
  10.   "Archive"=>"yes"
  11. ) ;
  12.  
  13.  
  14. $output_file="file.txt" ;
  15. foreach ($callFileArray as $key=>$callFileArray) {
  16.        
  17.   $file=fopen($output_file, $key) ;
  18.   fwrite( $file,  "This is  a simple test\n" );
  19.   fclose( $file ) ;
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement