search for: stream_get_contents

Displaying 4 results from an estimated 4 matches for "stream_get_contents".

2013 Sep 24
3
php fopen ssl error
Hi, With CentOS php53 I get an SSL Error <?php $handle = fopen("https://maps.google.com", "r"); $contents = stream_get_contents($handle); fclose($handle); ?> will result in something like Warning: stream_get_contents(): SSL: fatal protocol error in bla.php on line 3 Some https pages do not raise this error, e.g. https://www.redhat.com is fine What is wrong? How to debug? -- Markus
2018 Jan 23
0
Now playing (PHP example)
...foreach ($headers as $h) if (strpos(strtolower($h), 'icy-metaint') !== false && ($interval = explode(':', $h)[1])) break; $context = stream_context_create($opts); if ($stream = fopen($streamingUrl, 'r', false, $context)) { while($buffer = stream_get_contents($stream, $interval, $offset)) { if (strpos($buffer, $needle) !== false) { fclose($stream); $title = explode($needle, $buffer)[1]; return substr($title, 1, strpos($title, ';') - 2); } $offset += $interval; } } } print(getMp3StreamTitle('ht...
2018 Jan 23
2
Now playing (PHP example)
Wow, thank you so much! I completely forgot about the status-json.xsl file... :D 2018-01-23 15:38 GMT+01:00, unosonic <un at aporee.org>: > Danijela Popović: >> Hi all, >> Basically there's my question in the subject. I need a simple example >> of now playing artist, song, and listeners. Can somebody write it down >> for me? > > no time, sorry >
2006 Jul 26
5
Monitor traffic/bandwidth by mountpoint
I saw a request for this feature raised several years ago. Has this been implemented yet? If not, how are users monitoring traffic on port 8000, and even better can you split it up by mountpoint? I want to know how much traffic our icecast clients are using each month. Thank you, Shannon