search for: file_get_cont

Displaying 8 results from an estimated 8 matches for "file_get_cont".

2018 Sep 14
2
AGI timeout option
I don't know AGIspeedy, but I have some PHP scripts where I set a connect timeout using streams. Example using https, but should be easily adaptable to non-s http.: $pbxsh_bin = @file_get_contents("https://blah.blah.blah", FALSE, @stream_context_create(array('https' => array('timeout' => 5, "verify_peer"=>false, "verify_peer_name"=>false)))); On 09/14/2018 01:40 PM, Carlos Chavez wrote: > On 9/13/2018 8:04 PM, Patrick Wakano...
2007 Oct 27
2
UTF-8 BOM
I'v encountered what seems to be a bug in PHP Markdown v1.0.1k. Given a UTF-8 with a BOM, the first line is not parsed. A brief search revealed a bug report for a similar issue in python- markdown: > I'm using the markdown.py command to generate HTML from Markdown > documentation and I've found that if a utf-8 file starts with a BOM > a paragraph is generated
2018 Sep 18
2
AGI timeout option
...03:56, Eric Wieling <ewieling at nyigc.com> wrote: > >> I don't know AGIspeedy, but I have some PHP scripts where I set a >> connect timeout using streams. >> >> Example using https, but should be easily adaptable to non-s http.: >> >> $pbxsh_bin = @file_get_contents("https://blah.blah.blah", FALSE, >> @stream_context_create(array('https' => array('timeout' => 5, >> "verify_peer"=>false, "verify_peer_name"=>false)))); >> >> On 09/14/2018 01:40 PM, Carlos Chavez wrote: >>...
2010 Dec 04
1
what is this averaging function called ?, has R a built in function for it ?
...hm is so basic I wonder what is the proper name of this function and is it build in R. here is some code in PHP to illustrate what the function is doing, it uses some function I created but the meaning is obvious: #get csv file and interchange rows with columns to get two arrays $csv = aic(getcsv(file_get_contents("out.csv"))); #now those arrays contained in one bigger array are sorted array_multisort($csv[0],SORT_NUMERIC,$csv[1],SORT_NUMERIC); #second array is created and values that will be put on x or 0 axis are made unique with every y or 1 # value is going into array under x/0 it will be...
2009 Dec 16
1
php and mime type
Hi list, I'm hoping to find a way via php, preferably without using exec() or system(), to reliably identify an ogg vorbis file via php. Using $fi = new finfo(FILEINFO_MIME); $mime_type = $fi->buffer(file_get_contents($upload)); results in 'application/ogg' My site accepts vouchers for herpetology records, but only image and audio. I do not wish to support video vouchers, but if an Ogg Theora file is uploaded, it also produces the mime type 'application/ogg' when looked at with finfo cla...
2018 Sep 14
3
AGI timeout option
Hello list, Hope you all doing well! Recently, I had an issue with a FastAGI PHP script, which under some specific situation would run into an infinity loop, consuming all CPU resources. This also was preventing Asterisk to terminated the call properly because it was waiting for the AGI to return... The application uses AGIspeedy to process the AGI calls, not sure if this can be affecting this
2023 Aug 29
1
Classic Upgrade changes domain SID
On Mon, 2023-08-28 at 23:46 +0200, Peter Koch via samba wrote: > Hi Andrew and Roland, > > I spent some hours today to debug the problem by > adding lots of printf-statements into the samba4 > source. > > Here are my findings: > - upgrade.py calls passdb.get_global_sam_sid() > - get_global_sam_sid() calls pdb_generate_sam_sid() > - pdb_generate_sam_sid() calls
2013 Feb 20
2
exten => h,n,AGI(generateCall.php,${NEXT})
...Call.php,${NEXT})exten => h,n,Hangup()_______________________________________________________________________File: /usr/share/asterisk/agi-bin/generateCall.php #!/usr/bin/php -q<?php$fileName = "/var/www/consumer.txt";$next = $argv[1];$f = fopen($fileName,'r');$fileContent = file_get_contents($fileName);$outdialNumbers = explode("\n",$fileContent); if($outdialNumbers[$next]) { $callFile = "/var/spool/asterisk/outgoing/".$outdialNumbers[$next].".call"; $f = fopen($callFile,'w'); $callFileContent = &q...