New webcams
For Charlottetown PEI Webcams ….
For Charlottetown PEI Webcams ….
function file_get_contents_utf8($URL)
{
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_HEADER, 1);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_HTTPHEADER, array("Accept-Encoding: gzip, deflate","Accept: */*"));
$ret = curl_exec($c);
curl_close($c);
if(strpos($ret, "\r\n\r\n")){
$add = 4;
}else{
$add = 0;
}
$m_body = substr($ret, strpos($ret, "\r\n\r\n")+$add );
$m_header = substr($ret, 0, -strlen($m_body));
if(strstr($m_header,"Content-Encoding: gzip")){
$contents = gzinflate(substr($m_body,10));
}else{
$contents = $m_body;
}
if ($contents) return $contents;
else return FALSE;
}
Make sure mod_status is enabled in your httpd / apache config, and add the following lines
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
If you are getting permission errors, try setting
UseCanonicalName Off
echo $((1024 * 1024 * xxx)) > /proc/sys/kernel/shmmax
Change xxx to MB required
To read value ( in MB )
echo $((`cat /proc/sys/kernel/shmmax` / 1048576))
Add command to rc.local to enter at boot.
Female Voices
Agnes
Kathy
Princess
Vicki
Victoria
Male Voices
Bruce
Fred
Junior
Ralph
Novelty
Albert
Bad News
Bahh
Bells
Boing
Bubbles
Cellos
Deranged
“Good News”
Hysterical ”
“Pipe Organ”
Trinoids
Whisper
Zarvox