Relocation javascript
echo «self.location=’time_setting.php’;»;
echo «self.location=’time_setting.php’;»;
var numbers = JSON.parse(‘<?= $numbers ?>’);
$i = 0; while ($i <= 101) { $i++; shell_exec(«lame —decode /tmp/mp3/$i.mp3 — | sox -v 0.5 -t wav — -t wav -b 16 -r 8000 -c 1 /tmp/wav/1/$i.wav»); }
$data = json_decode(file_get_contents(‘https://maps.googleapis.com/maps/api/geocode/json?&address=מצדה+7+בני+בק&key=XXXX&language=iw’)); //echo json_encode($data); echo ‘<pre>’; //var_dump($data->results[0]->address_components); $test = array(); foreach ($data->results[0]->address_components as $item) { $test[] = $item->long_name; } print_r($test);
php mysql pdo SELECT SUM $sql = $pdo->prepare(«SELECT SUM(quantity) FROM card WHERE phone=’$phone'»); $sql->execute(); $row = $sql->fetchColumn(0);
Php Freepbx Elastix Apply Config: shell_exec(«/var/lib/asterisk/bin/module_admin reload»)
require ‘rb.php’; $db = require ‘../config/config_db.php’; R::setup($db[‘dsn’], $db[‘user’], $db[‘pass’], $options); R::freeze(true); R::fancyDebug( TRUE ); var_dump(R::testConnection()); Создание таблиц в базе $cat = R::dispense(‘category’); $cat->title = ‘Категория 3’; $id = R::store($cat); var_dump($id); Read $cat = R::load(‘category’, 2); print_r($cat); echo $cat->title; $cat->title; Update-1 $cat = R::load(‘category’, 3); echo $cat->title . ‘<br>’; $cat->title = ‘Категория 3’; R::store($cat); echo $cat->title;… Читать далее »
//$string = ‘Ученик сидит за партой’; $string = ‘Он закончил школу в 2000 году. И стал студентом в 2002.’; //$pattern = ‘/Ученик/’; //$pattern = ‘/200[3-5]/’; //$pattern = ‘/200[5,8,9]/’; //Поиск от 0 и до 9999 //$pattern = ‘/[0-9][0-9][0-9][0-9]/’; $pattern = ‘/ш{2}/’; $result = preg_match($pattern, $string); var_dump($result);