Whoops \ Exception \ ErrorException (E_WARNING)
number_format() expects parameter 1 to be double, string given Whoops\Exception\ErrorException thrown with message "number_format() expects parameter 1 to be double, string given" Stacktrace: #2 Whoops\Exception\ErrorException in /home/w/wwwxp/phone-960.ru/public_html/includes/number-text.php:44 #1 number_format in /home/w/wwwxp/phone-960.ru/public_html/includes/number-text.php:44 #0 require in /home/w/wwwxp/phone-960.ru/public_html/index.php:116
Stack frames (3)
2
Whoops
\
Exception
\
ErrorException
/
includes
/
number-text.php
44
1
number_format
/
includes
/
number-text.php
44
0
require
/
index.php
116
/
home
/
w
/
wwwxp
/
phone-960.ru
/
public_html
/
includes
/
number-text.php
            $stat['sum_tele2'] += $numbers;
        }
        
        if(substr($value['abc'], 0, 1) == '9') {
            $stat['sum_mobile'] += $numbers;
        } elseif(substr($value['abc'], 0, 3) == '800') {
            $stat['sum_free'] += $numbers;
        } else {
            $stat['sum_static'] += $numbers;
        }
        
        $stat['sum_all'] += $numbers;
    }
    
    file_put_contents($file, json_encode($stat, JSON_UNESCAPED_UNICODE));
}
 
/* META */
$meta = array(
    "description"    => 'Всего на нашем сайте содержится информация о ' . number_format($stat['sum_all'], 0, '', ' ') . ' стационарных и мобильных телефонных номерах России, из которых ' . number_format($stat['sum_megafon'], 0, '', ' ') . ' — «МегаФон», ' . number_format($stat['sum_mts'], 0, '', ' ') . ' — «МТС», ' . number_format($stat['sum_beeline'], 0, '', ' ') . '> — «Билайн» и ' . number_format($stat['sum_tele2'], 0, '', ' ') . ' — «Tele2».',
    "keywords"        => 'статистика телефонных номеров'
);
 
$array["meta"] = $meta;
$array["pageTitle"] = 'Статистика телефонных номеров РФ';
 
/* Breadcrumbs */
$breadcrumbs[0]['title'] = 'Номера';
$breadcrumbs[0]['a'] = '';
 
echo View::make('header')->with($array)->render();
 
?>
<?php echo View::make('searchform-jumbo')->render() ?>
 
<div class="container">
       <?php echo View::make('breadcrumbs')->with(["breadcrumbs" => $breadcrumbs, "counter" => true])->render() ?>    
    <div class="row">
        <div class="col-md-12" id="content">
            <h1>Номера</h1>
/
home
/
w
/
wwwxp
/
phone-960.ru
/
public_html
/
includes
/
number-text.php
            $stat['sum_tele2'] += $numbers;
        }
        
        if(substr($value['abc'], 0, 1) == '9') {
            $stat['sum_mobile'] += $numbers;
        } elseif(substr($value['abc'], 0, 3) == '800') {
            $stat['sum_free'] += $numbers;
        } else {
            $stat['sum_static'] += $numbers;
        }
        
        $stat['sum_all'] += $numbers;
    }
    
    file_put_contents($file, json_encode($stat, JSON_UNESCAPED_UNICODE));
}
 
/* META */
$meta = array(
    "description"    => 'Всего на нашем сайте содержится информация о ' . number_format($stat['sum_all'], 0, '', ' ') . ' стационарных и мобильных телефонных номерах России, из которых ' . number_format($stat['sum_megafon'], 0, '', ' ') . ' — «МегаФон», ' . number_format($stat['sum_mts'], 0, '', ' ') . ' — «МТС», ' . number_format($stat['sum_beeline'], 0, '', ' ') . '> — «Билайн» и ' . number_format($stat['sum_tele2'], 0, '', ' ') . ' — «Tele2».',
    "keywords"        => 'статистика телефонных номеров'
);
 
$array["meta"] = $meta;
$array["pageTitle"] = 'Статистика телефонных номеров РФ';
 
/* Breadcrumbs */
$breadcrumbs[0]['title'] = 'Номера';
$breadcrumbs[0]['a'] = '';
 
echo View::make('header')->with($array)->render();
 
?>
<?php echo View::make('searchform-jumbo')->render() ?>
 
<div class="container">
       <?php echo View::make('breadcrumbs')->with(["breadcrumbs" => $breadcrumbs, "counter" => true])->render() ?>    
    <div class="row">
        <div class="col-md-12" id="content">
            <h1>Номера</h1>
/
home
/
w
/
wwwxp
/
phone-960.ru
/
public_html
/
index.php
    if (!empty($uri[1]) && $uri[1] == 'personal-data') {
        $page = 'about-personal-data';
    } elseif (!empty($uri[1])) {
        header("HTTP/1.0 404 Not Found");
        $page = 404;
    } else {
        $page = 'about';
    }
}
 
# TEMPLATE RENDER
 
if (empty($page)) {
    header("HTTP/1.0 404 Not Found");
    $page = 404;
}
 
 
ob_start("ob_html_compress");
require("includes/$page.php");
ob_end_flush();
#echo 'Script time: '.round(microtime(true) - $start, 4).' sec.';
 

Environment & details:

empty
empty
empty
empty
Key Value
_token 7af6941ad0e395cafeff3cb1e35a2b10
Key Value
REDIRECT_REDIRECT_UNIQUE_ID Zylewqu6fiQgqlcFBtEQRgAAAAM
REDIRECT_REDIRECT_MMDB_ADDR 3.239.90.61
REDIRECT_REDIRECT_GEOIP_ADDR 3.239.90.61
REDIRECT_REDIRECT_MMDB_INFO result found
REDIRECT_REDIRECT_GEOIP_CITY Ashburn
REDIRECT_REDIRECT_GEOIP_LONGITUDE -77.49030
REDIRECT_REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_REDIRECT_GEOIP_LATITUDE 39.04690
REDIRECT_REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_REDIRECT_GEOIP_REGION VA
REDIRECT_REDIRECT_HTTPS on
REDIRECT_REDIRECT_PERL_USE_UNSAFE_INC 1
REDIRECT_REDIRECT_PHPRC /home/w/wwwxp/phone-960.ru/public_html/cgi-bin/php.ini
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID Zylewqu6fiQgqlcFBtEQRgAAAAM
REDIRECT_MMDB_ADDR 3.239.90.61
REDIRECT_GEOIP_ADDR 3.239.90.61
REDIRECT_MMDB_INFO result found
REDIRECT_GEOIP_CITY Ashburn
REDIRECT_GEOIP_LONGITUDE -77.49030
REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_GEOIP_LATITUDE 39.04690
REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_GEOIP_REGION VA
REDIRECT_HTTPS on
REDIRECT_PERL_USE_UNSAFE_INC 1
REDIRECT_PHPRC /home/w/wwwxp/phone-960.ru/public_html/cgi-bin/php.ini
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID Zylewqu6fiQgqlcFBtEQRgAAAAM
MMDB_ADDR 3.239.90.61
GEOIP_ADDR 3.239.90.61
MMDB_INFO result found
GEOIP_CITY Ashburn
GEOIP_LONGITUDE -77.49030
GEOIP_CONTINENT_CODE NA
GEOIP_LATITUDE 39.04690
GEOIP_POSTAL_CODE 20149
GEOIP_COUNTRY_CODE US
GEOIP_COUNTRY_NAME United States
GEOIP_REGION VA
HTTPS on
PERL_USE_UNSAFE_INC 1
PHPRC /home/w/wwwxp/phone-960.ru/public_html/cgi-bin/php.ini
HTTP_HOST phone-960.ru
HTTP_X_SERVER_ADDR 87.236.16.171
HTTP_X_FORWARDED_PROTO https
HTTP_X_REAL_IP 3.239.90.61
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.55 (Unix) Server at phone-960.ru Port 80</address>
SERVER_SOFTWARE Apache/2.4.55 (Unix)
SERVER_NAME phone-960.ru
SERVER_ADDR 87.236.16.171
SERVER_PORT 443
REQUEST_SCHEME https
REMOTE_ADDR 3.239.90.61
DOCUMENT_ROOT /home/w/wwwxp/phone-960.ru/public_html
CONTEXT_PREFIX /php-cgi
CONTEXT_DOCUMENT_ROOT /usr/local/php-cgi/5.6/bin
SERVER_ADMIN webmaster@phone-960.ru
SCRIPT_FILENAME /home/w/wwwxp/phone-960.ru/public_html/index.php
REMOTE_PORT 52355
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /number/+79600000267
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /usr/local/php-cgi/5.6/bin/php-cgi
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /home/w/wwwxp/phone-960.ru/public_html/index.php
ORIG_SCRIPT_NAME /php-cgi/php-cgi
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1730764482.8848
REQUEST_TIME 1730764482
argv Array ( )
argc 0
Key Value
REDIRECT_REDIRECT_UNIQUE_ID Zylewqu6fiQgqlcFBtEQRgAAAAM
REDIRECT_REDIRECT_MMDB_ADDR 3.239.90.61
REDIRECT_REDIRECT_GEOIP_ADDR 3.239.90.61
REDIRECT_REDIRECT_MMDB_INFO result found
REDIRECT_REDIRECT_GEOIP_CITY Ashburn
REDIRECT_REDIRECT_GEOIP_LONGITUDE -77.49030
REDIRECT_REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_REDIRECT_GEOIP_LATITUDE 39.04690
REDIRECT_REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_REDIRECT_GEOIP_REGION VA
REDIRECT_REDIRECT_HTTPS on
REDIRECT_REDIRECT_PERL_USE_UNSAFE_INC 1
REDIRECT_REDIRECT_PHPRC /home/w/wwwxp/phone-960.ru/public_html/cgi-bin/php.ini
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID Zylewqu6fiQgqlcFBtEQRgAAAAM
REDIRECT_MMDB_ADDR 3.239.90.61
REDIRECT_GEOIP_ADDR 3.239.90.61
REDIRECT_MMDB_INFO result found
REDIRECT_GEOIP_CITY Ashburn
REDIRECT_GEOIP_LONGITUDE -77.49030
REDIRECT_GEOIP_CONTINENT_CODE NA
REDIRECT_GEOIP_LATITUDE 39.04690
REDIRECT_GEOIP_POSTAL_CODE 20149
REDIRECT_GEOIP_COUNTRY_CODE US
REDIRECT_GEOIP_COUNTRY_NAME United States
REDIRECT_GEOIP_REGION VA
REDIRECT_HTTPS on
REDIRECT_PERL_USE_UNSAFE_INC 1
REDIRECT_PHPRC /home/w/wwwxp/phone-960.ru/public_html/cgi-bin/php.ini
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID Zylewqu6fiQgqlcFBtEQRgAAAAM
MMDB_ADDR 3.239.90.61
GEOIP_ADDR 3.239.90.61
MMDB_INFO result found
GEOIP_CITY Ashburn
GEOIP_LONGITUDE -77.49030
GEOIP_CONTINENT_CODE NA
GEOIP_LATITUDE 39.04690
GEOIP_POSTAL_CODE 20149
GEOIP_COUNTRY_CODE US
GEOIP_COUNTRY_NAME United States
GEOIP_REGION VA
HTTPS on
PERL_USE_UNSAFE_INC 1
PHPRC /home/w/wwwxp/phone-960.ru/public_html/cgi-bin/php.ini
HTTP_HOST phone-960.ru
HTTP_X_SERVER_ADDR 87.236.16.171
HTTP_X_FORWARDED_PROTO https
HTTP_X_REAL_IP 3.239.90.61
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.55 (Unix) Server at phone-960.ru Port 80</address>
SERVER_SOFTWARE Apache/2.4.55 (Unix)
SERVER_NAME phone-960.ru
SERVER_ADDR 87.236.16.171
SERVER_PORT 443
REQUEST_SCHEME https
REMOTE_ADDR 3.239.90.61
DOCUMENT_ROOT /home/w/wwwxp/phone-960.ru/public_html
CONTEXT_PREFIX /php-cgi
CONTEXT_DOCUMENT_ROOT /usr/local/php-cgi/5.6/bin
SERVER_ADMIN webmaster@phone-960.ru
SCRIPT_FILENAME /home/w/wwwxp/phone-960.ru/public_html/index.php
REMOTE_PORT 52355
REDIRECT_URL /index.php
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /number/+79600000267
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /usr/local/php-cgi/5.6/bin/php-cgi
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /home/w/wwwxp/phone-960.ru/public_html/index.php
ORIG_SCRIPT_NAME /php-cgi/php-cgi
0. Whoops\Handler\PrettyPageHandler