This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WaterMark Водный знак */ | |
// Сообщаем браузеру что ему даем картинку | |
header('Content-Type: image/jpeg'); // Работает для jpeg | |
$dir = __DIR__ . "/images/"; | |
$arr_name_img = scandir($dir); | |
array_shift($arr_name_img); // Удалил . | |
array_shift($arr_name_img); // Удалил .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dir = scandir("source"); | |
$file = []; | |
for ($i = 2; $i < count($dir); $i++) { | |
$_arr = fopen("source/" .$dir[$i], "r"); | |
array_push($file, file("source/" .$dir[$i])); | |
} | |
$arr = []; | |
$arr = call_user_func_array('array_merge', $file); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Kaboom</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<ul id="chat"> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Подключение к БД | |
$pdo = new PDO("mysql:host=localhost: dbname=test", "root", ""); | |
// Готовим запрос | |
$sql = "SELECT * FROM tasks"; | |
$statement = $pdo->prepare($sql); // подготовить запрос | |
$result = $statement->execute(); // вернет true || false // Запускает подготовленный запрос на выполнение |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
spl_autoload_register(function ($ClassName){ | |
$filePath = 'classes/' . $ClassName; | |
if (file_exists($filePath)) { | |
require_once $filePath; | |
} | |
}); | |
spl_autoload_register(function ($ClassName){ | |
$filePath = 'controller/' . $ClassName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/node_modules | |
/public/hot | |
/public/build | |
/public/storage | |
/storage/*.key | |
/vendor | |
.env | |
.phpunit.result.cache | |
Homestead.json | |
Homestead.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML для класса --> | |
<span class="rating nowrap" id="stars3"> | |
<i class="empty star" data-qty-star="1"></i> | |
<i class="empty star" data-qty-star="2"></i> | |
<i class="empty star" data-qty-star="3"></i> | |
<i class="empty star" data-qty-star="4"></i> | |
<i class="empty star" data-qty-star="5"></i> | |
<label for="stars_input3"></label> | |
<input type="text" name="star_rait_speed" id="stars_input3" value="0" class="review-qty" readonly> | |
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var all = document.getElementsByTagName("*"); | |
console.log( all.length ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let wi = window.innerWidth | |
|| document.documentElement.clientWidth | |
|| document.body.clientWidth |
OlderNewer