$file = file_get_contents('/path/to/file');
$lineNumber = substr_count($file , "\n" , strpos($file, '$ctr->setCtr()'));
echo '<p style="text-align: center; margin-top: 30px; margin-bottom: 30px;"><strong style="color: green">ID</strong>:' . $w["id"] . '<br> <strong style="color: green">Кошелек</strong>:' . $w["id"] . '<br> <strong style="color: green">Сумма</strong>:' . $w["id"] . '<br> <strong style="color: green">Статус</strong>:' . $w["id"] . '</p><br>';
php_mongodb.ini
это не пакет. Это файл настроек. Предполагаю что как раз таки сам MongoDB вы и не с качали и не установили.function deployValues(&$base, $values) {
$newBase = [];
foreach ($values as $i => $value) {
foreach ($base as $j => $baseValue) {
$orig = is_array($baseValue) ? $baseValue : [$baseValue];
array_push($orig, $value);
$newBase[] = $orig;
}
}
$base = $newBase;
}
$r = [
'A' => [1, 2, 3],
'B' => [10, 20, 30],
'C' => [100, 200, 300],
'D' => ['a', 'b', 'c', 'd'],
];
$x = null;
foreach ($r as $c) {
if ($x === null) {
$x = $c;
} else {
deployValues($x, $c);
}
}
print_r($x);
function UR_exists($url){
$headers=get_headers($url);
return stripos($headers[0],"200 OK")?true:false;
}
if(UR_exists("https://site.com/file.jpg"))
echo "Файл существует";
else
echo "Файл не существует";