Fix: function "split" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin 2009-10-21 19:49:29 +00:00
parent d50d4bae7c
commit 679ef74b24
3 changed files with 4 additions and 4 deletions

View File

@ -66,9 +66,9 @@ class geoipdnsrecord {
function getrecordwithdnsservice($str){
$record = new geoipdnsrecord;
$keyvalue = split(";",$str);
$keyvalue = explode(";",$str);
foreach ($keyvalue as $keyvalue2){
list($key,$value) = split("=",$keyvalue2);
list($key,$value) = explode("=",$keyvalue2);
if ($key == "co"){
$record->country_code = $value;
}

View File

@ -150,7 +150,7 @@ class MagpieRSS {
// check for a namespace, and split if found
$ns = false;
if ( strpos( $element, ':' ) ) {
list($ns, $el) = split( ':', $element, 2);
list($ns, $el) = explode( ':', $element, 2);
}
if ( $ns and $ns != 'rdf' ) {
$this->current_namespace = $ns;

View File

@ -181,7 +181,7 @@ function smarty_function_fetch($params, &$smarty)
$content .= fgets($fp,4096);
}
fclose($fp);
$csplit = split("\r\n\r\n",$content,2);
$csplit = explode("\r\n\r\n",$content,2);
$content = $csplit[1];