{"id":135567,"date":"2026-08-10T21:33:35","date_gmt":"2026-08-10T15:33:35","guid":{"rendered":"https:\/\/rcl-radio.ru\/?p=135567"},"modified":"2026-08-10T22:39:25","modified_gmt":"2026-08-10T16:39:25","slug":"%d0%b4%d0%b5%d0%bb%d0%b0%d0%b5%d0%bc-%d0%b2%d1%8b%d0%b2%d0%be%d0%b4-%d1%81%d1%82%d0%b0%d1%82%d0%b5%d0%b9-%d0%b8-%d1%81%d1%82%d1%80%d0%b0%d0%bd%d0%b8%d1%83-%d0%be%d1%82%d0%b4%d0%b5%d0%bb%d1%8c%d0%bd","status":"publish","type":"post","link":"https:\/\/rcl-radio.ru\/?p=135567","title":{"rendered":"\u0414\u0435\u043b\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u0435\u0439 \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438"},"content":{"rendered":"<p>\u0424\u0430\u0439\u043b read_post.php<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;<\/span>?php\r\nrequire <span style=\"color: #ff0000;\">'db_connect.php'<\/span>;\r\n\u00a0\r\n$slug = trim<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'slug'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>$slug === <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    http_response_code<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">404<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    echo <span style=\"color: #ff0000;\">'\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430'<\/span>;\r\n    <span style=\"color: #b1b100;\">return<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u2014 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 SQL\u2011\u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0439<\/span>\r\n$sql = <span style=\"color: #ff0000;\">'SELECT id, title, slug, content, meta_description, is_published, created_at\r\n        FROM posts\r\n        WHERE slug = ? AND is_published = 1'<\/span>;\r\n$stmt = mysqli_prepare<span style=\"color: #66cc66;\">(<\/span>$connection, $sql<span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>$stmt<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    http_response_code<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">500<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    echo <span style=\"color: #ff0000;\">'\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430'<\/span>;\r\n    <span style=\"color: #b1b100;\">return<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\nmysqli_stmt_bind_param<span style=\"color: #66cc66;\">(<\/span>$stmt, <span style=\"color: #ff0000;\">'s'<\/span>, $slug<span style=\"color: #66cc66;\">)<\/span>;\r\nmysqli_stmt_execute<span style=\"color: #66cc66;\">(<\/span>$stmt<span style=\"color: #66cc66;\">)<\/span>;\r\n$result = mysqli_stmt_get_result<span style=\"color: #66cc66;\">(<\/span>$stmt<span style=\"color: #66cc66;\">)<\/span>;\r\n$article = mysqli_fetch_assoc<span style=\"color: #66cc66;\">(<\/span>$result<span style=\"color: #66cc66;\">)<\/span>;\r\nmysqli_stmt_close<span style=\"color: #66cc66;\">(<\/span>$stmt<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>$article<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    http_response_code<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">404<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    echo <span style=\"color: #ff0000;\">'\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430'<\/span>;\r\n    <span style=\"color: #b1b100;\">return<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>title<span style=\"color: #66cc66;\">&gt;&lt;<\/span>?php echo htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$article<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'title'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>title<span style=\"color: #66cc66;\">&gt;<\/span> \r\n                <span style=\"color: #66cc66;\">&lt;<\/span>h1<span style=\"color: #66cc66;\">&gt;&lt;<\/span>?php echo htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$article<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'title'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>h1<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>small<span style=\"color: #66cc66;\">&gt;<\/span>\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e: <span style=\"color: #66cc66;\">&lt;<\/span>?php echo <span style=\"color: #0066cc;\">date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'d.m.Y H:i'<\/span>, strtotime<span style=\"color: #66cc66;\">(<\/span>$article<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'created_at'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>small<span style=\"color: #66cc66;\">&gt;<\/span>\r\n            <span style=\"color: #66cc66;\">&lt;<\/span>div <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"article-content\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>?php echo $article<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'content'<\/span><span style=\"color: #66cc66;\">]<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n            <span style=\"color: #66cc66;\">&lt;\/<\/span>div<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<p>\u0424\u0430\u0439\u043b read_post_loop.php<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;<\/span>?php\r\nrequire_once <span style=\"color: #ff0000;\">'db_connect.php'<\/span>;\r\n\u00a0\r\n$sql = <span style=\"color: #ff0000;\">'SELECT id, title, slug, meta_description, content, created_at\r\n        FROM posts\r\n        WHERE is_published = 1\r\n        ORDER BY created_at DESC'<\/span>;\r\n\u00a0\r\n$result = mysqli_query<span style=\"color: #66cc66;\">(<\/span>$connection, $sql<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u0412\u043c\u0435\u0441\u0442\u043e die() \u0434\u0435\u043b\u0430\u0435\u043c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0444\u0443\u0442\u0435\u0440 \u043d\u0435 \u043f\u0440\u043e\u043f\u0430\u043b<\/span>\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>$result<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    error_log<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430: '<\/span> . <span style=\"color: #006600;\">mysqli_error<\/span><span style=\"color: #66cc66;\">(<\/span>$connection<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    echo <span style=\"color: #ff0000;\">'&lt;p style=\"color: red;\"&gt;\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439.&lt;\/p&gt;'<\/span>;\r\n    <span style=\"color: #b1b100;\">return<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0434\u043e\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u0444\u0443\u0442\u0435\u0440<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n<span style=\"color: #66cc66;\">&lt;<\/span>h2<span style=\"color: #66cc66;\">&gt;<\/span>\u0421\u0442\u0430\u0442\u044c\u0438<span style=\"color: #66cc66;\">&lt;\/<\/span>h2<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n<span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>mysqli_num_rows<span style=\"color: #66cc66;\">(<\/span>$result<span style=\"color: #66cc66;\">)<\/span> === <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>: ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\u0421\u0442\u0430\u0442\u0435\u0439 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442.<span style=\"color: #66cc66;\">&lt;\/<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">else<\/span>: ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>ul <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"articles-list\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">while<\/span> <span style=\"color: #66cc66;\">(<\/span>$row = mysqli_fetch_assoc<span style=\"color: #66cc66;\">(<\/span>$result<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>: ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n            <span style=\"color: #66cc66;\">&lt;<\/span>li <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"article-item\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>h3<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                    <span style=\"color: #66cc66;\">&lt;!<\/span>-- \u041e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430: \u0431\u0435\u0437 <span style=\"color: #0066cc;\">index<\/span>.<span style=\"color: #006600;\">php<\/span>, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u0430 --<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                    <span style=\"color: #66cc66;\">&lt;<\/span>a href=<span style=\"color: #ff0000;\">\"?slug=&lt;?php echo htmlspecialchars(urlencode($row['slug'] ?? '')); ?&gt;\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n                        <span style=\"color: #66cc66;\">&lt;<\/span>?php echo htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'title'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                    <span style=\"color: #66cc66;\">&lt;\/<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;\/<\/span>h3<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>?php\r\n                <span style=\"color: #808080; font-style: italic;\">\/\/ \u041b\u043e\u0433\u0438\u043a\u0430 \u0432\u044b\u0431\u043e\u0440\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f<\/span>\r\n                $preview = <span style=\"color: #ff0000;\">''<\/span>;\r\n\u00a0\r\n                <span style=\"color: #808080; font-style: italic;\">\/\/ 1. \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c meta_description \u2014 \u0431\u0435\u0440\u0451\u043c \u0435\u0433\u043e<\/span>\r\n                <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>empty<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'meta_description'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n                    $preview = htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'meta_description'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n                <span style=\"color: #66cc66;\">}<\/span> \r\n                <span style=\"color: #808080; font-style: italic;\">\/\/ 2. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u0434\u0435\u043b\u0430\u0435\u043c \u0430\u043d\u043e\u043d\u0441 \u0438\u0437 content<\/span>\r\n                <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n                    $content = $row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'content'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">''<\/span>;\r\n\u00a0\r\n                    <span style=\"color: #808080; font-style: italic;\">\/\/ \u0423\u0434\u0430\u043b\u044f\u0435\u043c HTML-\u0442\u0435\u0433\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0441\u043f\u0438\u0441\u043a\u0430<\/span>\r\n                    $plainText = strip_tags<span style=\"color: #66cc66;\">(<\/span>$content<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n                    <span style=\"color: #808080; font-style: italic;\">\/\/ \u041e\u0431\u0440\u0435\u0437\u0430\u0435\u043c \u0434\u043e 200 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 (UTF-8 \u0434\u043b\u044f \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u044b)<\/span>\r\n                    $preview = mb_substr<span style=\"color: #66cc66;\">(<\/span>$plainText, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">200<\/span>, <span style=\"color: #ff0000;\">'UTF-8'<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n                    <span style=\"color: #808080; font-style: italic;\">\/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u043d\u043e\u0433\u043e\u0442\u043e\u0447\u0438\u0435, \u0435\u0441\u043b\u0438 \u0442\u0435\u043a\u0441\u0442 \u0431\u044b\u043b \u043e\u0431\u0440\u0435\u0437\u0430\u043d<\/span>\r\n                    <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>mb_strlen<span style=\"color: #66cc66;\">(<\/span>$plainText, <span style=\"color: #ff0000;\">'UTF-8'<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&gt;<\/span> <span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n                        $preview .= <span style=\"color: #ff0000;\">'\u2026'<\/span>;\r\n                    <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n                    $preview = htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$preview<span style=\"color: #66cc66;\">)<\/span>;\r\n                <span style=\"color: #66cc66;\">}<\/span>\r\n                ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n                <span style=\"color: #66cc66;\">&lt;!<\/span>-- \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 --<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>$preview <span style=\"color: #66cc66;\">!<\/span>== <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span>: ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                    <span style=\"color: #66cc66;\">&lt;<\/span>p <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"excerpt\"<\/span><span style=\"color: #66cc66;\">&gt;&lt;<\/span>?php echo $preview; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">endif<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>small <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"date\"<\/span><span style=\"color: #66cc66;\">&gt;&lt;<\/span>?php echo <span style=\"color: #0066cc;\">date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'d.m.Y'<\/span>, strtotime<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'created_at'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">'now'<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>small<span style=\"color: #66cc66;\">&gt;<\/span>\r\n            <span style=\"color: #66cc66;\">&lt;\/<\/span>li<span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">endwhile<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;\/<\/span>ul<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">endif<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0440\u0435\u0448\u0430\u0435\u0442 \u0434\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438:<\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\">\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439;<\/li>\n<li data-value=\"\" data-shift=\"0\">\u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u0435\u0451 slug (\u043a\u043e\u0440\u043e\u0442\u043a\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443).<\/li>\n<\/ul>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043e\u0431\u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u043f\u043e \u0441\u0443\u0442\u0438 \u2014 \u0433\u0434\u0435 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0438 \u0437\u0430\u0447\u0435\u043c.<\/p>\n<hr \/>\n<h2>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 1: \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438<\/h2>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">require <span style=\"color: #ff0000;\">'db_connect.php'<\/span>;\r\n\u00a0\r\n$slug = trim<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'slug'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>$slug === <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    http_response_code<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">404<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    echo <span style=\"color: #ff0000;\">'\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430'<\/span>;\r\n    <span style=\"color: #b1b100;\">return<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0421\u0443\u0442\u044c:<\/strong> \u0431\u0435\u0440\u0451\u043c slug \u0438\u0437 URL (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code class=\"CodeInlined\">?slug=my-first-post<\/code>). \u0415\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0442 \u2014 \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u0434\u0430\u0451\u043c 404. \u042d\u0442\u043e \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043b\u0438\u0448\u043d\u0438\u0445 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u043a \u0431\u0430\u0437\u0435.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">$sql = <span style=\"color: #ff0000;\">'SELECT id, title, slug, content, meta_description, is_published, created_at\r\n        FROM posts\r\n        WHERE slug = ? AND is_published = 1'<\/span>;\r\n$stmt = mysqli_prepare<span style=\"color: #66cc66;\">(<\/span>$connection, $sql<span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>$stmt<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    http_response_code<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">500<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    echo <span style=\"color: #ff0000;\">'\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430'<\/span>;\r\n    <span style=\"color: #b1b100;\">return<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\nmysqli_stmt_bind_param<span style=\"color: #66cc66;\">(<\/span>$stmt, <span style=\"color: #ff0000;\">'s'<\/span>, $slug<span style=\"color: #66cc66;\">)<\/span>;\r\nmysqli_stmt_execute<span style=\"color: #66cc66;\">(<\/span>$stmt<span style=\"color: #66cc66;\">)<\/span>;\r\n$result = mysqli_stmt_get_result<span style=\"color: #66cc66;\">(<\/span>$stmt<span style=\"color: #66cc66;\">)<\/span>;\r\n$article = mysqli_fetch_assoc<span style=\"color: #66cc66;\">(<\/span>$result<span style=\"color: #66cc66;\">)<\/span>;\r\nmysqli_stmt_close<span style=\"color: #66cc66;\">(<\/span>$stmt<span style=\"color: #66cc66;\">)<\/span>;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0421\u0443\u0442\u044c:<\/strong> \u0434\u0435\u043b\u0430\u0435\u043c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 (<code class=\"CodeInlined\">mysqli_prepare<\/code>). \u0417\u043d\u0430\u043a <code class=\"CodeInlined\">?<\/code> \u2014 \u043c\u0435\u0441\u0442\u043e \u043f\u043e\u0434 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e (<code class=\"CodeInlined\">bind_param<\/code>). \u042d\u0442\u043e \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043e\u0442 SQL\u2011\u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0439: \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u0448\u043b\u0451\u0442 \u0437\u043b\u043e\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u044b\u0439 slug, \u043e\u043d \u043d\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u0447\u0430\u0441\u0442\u044c\u044e SQL\u2011\u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>\u0423\u0441\u043b\u043e\u0432\u0438\u0435 <code class=\"CodeInlined\">AND is_published = 1<\/code> \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0438\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>$article<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    http_response_code<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">404<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    echo <span style=\"color: #ff0000;\">'\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430'<\/span>;\r\n    <span style=\"color: #b1b100;\">return<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n<span style=\"color: #66cc66;\">&lt;<\/span>title<span style=\"color: #66cc66;\">&gt;&lt;<\/span>?php echo htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$article<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'title'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>title<span style=\"color: #66cc66;\">&gt;<\/span> \r\n<span style=\"color: #66cc66;\">&lt;<\/span>h1<span style=\"color: #66cc66;\">&gt;&lt;<\/span>?php echo htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$article<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'title'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>h1<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span>small<span style=\"color: #66cc66;\">&gt;<\/span>\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043e: <span style=\"color: #66cc66;\">&lt;<\/span>?php echo <span style=\"color: #0066cc;\">date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'d.m.Y H:i'<\/span>, strtotime<span style=\"color: #66cc66;\">(<\/span>$article<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'created_at'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>small<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span>div <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"article-content\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>?php echo $article<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'content'<\/span><span style=\"color: #66cc66;\">]<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>div<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0421\u0443\u0442\u044c:<\/strong> \u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0435\u0442 \u2014 \u0441\u043d\u043e\u0432\u0430 404. \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u0434\u0430\u0442\u0443. <code class=\"CodeInlined\">htmlspecialchars<\/code> \u044d\u043a\u0440\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0441\u0438\u043c\u0432\u043e\u043b\u044b: \u044d\u0442\u043e \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 XSS. \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f <code class=\"CodeInlined\">&lt;script&gt;<\/code>, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0435\u0433\u043e \u043a\u0430\u043a \u0442\u0435\u043a\u0441\u0442, \u0430 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442.<\/p>\n<p>\u041a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u00ab\u043a\u0430\u043a \u0435\u0441\u0442\u044c\u00bb \u2014 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043d \u0443\u0436\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, HTML \u0431\u0435\u0437 \u0432\u0440\u0435\u0434\u043e\u043d\u043e\u0441\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432).<\/p>\n<hr \/>\n<h2>\u0424\u0440\u0430\u0433\u043c\u0435\u043d\u0442 2: \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439<\/h2>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">require_once <span style=\"color: #ff0000;\">'db_connect.php'<\/span>;\r\n\u00a0\r\n$sql = <span style=\"color: #ff0000;\">'SELECT id, title, slug, meta_description, content, created_at\r\n        FROM posts\r\n        WHERE is_published = 1\r\n        ORDER BY created_at DESC'<\/span>;\r\n\u00a0\r\n$result = mysqli_query<span style=\"color: #66cc66;\">(<\/span>$connection, $sql<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>$result<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    error_log<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430: '<\/span> . <span style=\"color: #006600;\">mysqli_error<\/span><span style=\"color: #66cc66;\">(<\/span>$connection<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    echo <span style=\"color: #ff0000;\">'&lt;p style=\"color: red;\"&gt;\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439.&lt;\/p&gt;'<\/span>;\r\n    <span style=\"color: #b1b100;\">return<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0421\u0443\u0442\u044c:<\/strong> \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0432\u0441\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u043e \u0434\u0430\u0442\u0435 \u2014 \u043d\u043e\u0432\u044b\u0435 \u0441\u0432\u0435\u0440\u0445\u0443. \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b, \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u0438\u0448\u0435\u043c \u0432 \u043b\u043e\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (<code class=\"CodeInlined\">error_log<\/code>), \u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435. \u0422\u0430\u043a \u043d\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0411\u0414.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;<\/span>h2<span style=\"color: #66cc66;\">&gt;<\/span>\u0421\u0442\u0430\u0442\u044c\u0438<span style=\"color: #66cc66;\">&lt;\/<\/span>h2<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n<span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>mysqli_num_rows<span style=\"color: #66cc66;\">(<\/span>$result<span style=\"color: #66cc66;\">)<\/span> === <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>: ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\u0421\u0442\u0430\u0442\u0435\u0439 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442.<span style=\"color: #66cc66;\">&lt;\/<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">else<\/span>: ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>ul <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"articles-list\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">while<\/span> <span style=\"color: #66cc66;\">(<\/span>$row = mysqli_fetch_assoc<span style=\"color: #66cc66;\">(<\/span>$result<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>: ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n            <span style=\"color: #66cc66;\">&lt;<\/span>li <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"article-item\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>h3<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                    <span style=\"color: #66cc66;\">&lt;<\/span>a href=<span style=\"color: #ff0000;\">\"?slug=&lt;?php echo htmlspecialchars(urlencode($row['slug'] ?? '')); ?&gt;\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n                        <span style=\"color: #66cc66;\">&lt;<\/span>?php echo htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'title'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                    <span style=\"color: #66cc66;\">&lt;\/<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;\/<\/span>h3<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0421\u0443\u0442\u044c:<\/strong> \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a. \u0421\u0441\u044b\u043b\u043a\u0430 \u0432\u0435\u0434\u0451\u0442 \u043d\u0430 \u0442\u0443 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043d\u043e \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <code class=\"CodeInlined\">?slug=\u2026<\/code>. <code class=\"CodeInlined\">urlencode<\/code> \u0434\u0435\u043b\u0430\u0435\u0442 slug \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u0434\u043b\u044f URL (\u043f\u0440\u043e\u0431\u0435\u043b\u044b, \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0430 \u0438 \u0442. \u043f. \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442). <code class=\"CodeInlined\">htmlspecialchars<\/code> \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0432 HTML.<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">                <span style=\"color: #66cc66;\">&lt;<\/span>?php\r\n                $preview = <span style=\"color: #ff0000;\">''<\/span>;\r\n\u00a0\r\n                <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">!<\/span>empty<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'meta_description'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n                    $preview = htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'meta_description'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n                <span style=\"color: #66cc66;\">}<\/span> \r\n                <span style=\"color: #b1b100;\">else<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n                    $content = $row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'content'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">''<\/span>;\r\n                    $plainText = strip_tags<span style=\"color: #66cc66;\">(<\/span>$content<span style=\"color: #66cc66;\">)<\/span>;\r\n                    $preview = mb_substr<span style=\"color: #66cc66;\">(<\/span>$plainText, <span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">200<\/span>, <span style=\"color: #ff0000;\">'UTF-8'<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n                    <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>mb_strlen<span style=\"color: #66cc66;\">(<\/span>$plainText, <span style=\"color: #ff0000;\">'UTF-8'<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&gt;<\/span> <span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n                        $preview .= <span style=\"color: #ff0000;\">'\u2026'<\/span>;\r\n                    <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n                    $preview = htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$preview<span style=\"color: #66cc66;\">)<\/span>;\r\n                <span style=\"color: #66cc66;\">}<\/span>\r\n                ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>$preview <span style=\"color: #66cc66;\">!<\/span>== <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span>: ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                    <span style=\"color: #66cc66;\">&lt;<\/span>p <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"excerpt\"<\/span><span style=\"color: #66cc66;\">&gt;&lt;<\/span>?php echo $preview; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">endif<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n                <span style=\"color: #66cc66;\">&lt;<\/span>small <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"date\"<\/span><span style=\"color: #66cc66;\">&gt;&lt;<\/span>?php echo <span style=\"color: #0066cc;\">date<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">'d.m.Y'<\/span>, strtotime<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'created_at'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">'now'<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>small<span style=\"color: #66cc66;\">&gt;<\/span>\r\n            <span style=\"color: #66cc66;\">&lt;\/<\/span>li<span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">endwhile<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;\/<\/span>ul<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">endif<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0421\u0443\u0442\u044c:<\/strong> \u043b\u043e\u0433\u0438\u043a\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u043d\u043e\u043d\u0441\u0430:<\/p>\n<ol>\n<li data-value=\"1.\" data-shift=\"1\">\u0415\u0441\u043b\u0438 \u0443 \u0441\u0442\u0430\u0442\u044c\u0438 \u0435\u0441\u0442\u044c <code class=\"CodeInlined\">meta_description<\/code> \u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e.<\/li>\n<li data-value=\"2.\" data-shift=\"1\">\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u0431\u0435\u0440\u0451\u043c <code class=\"CodeInlined\">content<\/code>, \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u043d\u0435\u0433\u043e HTML\u2011\u0442\u0435\u0433\u0438 (<code class=\"CodeInlined\">strip_tags<\/code>), \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0441\u043f\u0438\u0441\u043a\u0430.<\/li>\n<li data-value=\"3.\" data-shift=\"1\">\u041e\u0431\u0440\u0435\u0437\u0430\u0435\u043c \u0434\u043e 200 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441 \u0443\u0447\u0451\u0442\u043e\u043c UTF\u20118 (<code class=\"CodeInlined\">mb_substr<\/code>, <code class=\"CodeInlined\">mb_strlen<\/code>). \u0414\u043b\u044f \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u044b \u044d\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e: \u043e\u0431\u044b\u0447\u043d\u044b\u0439 <code class=\"CodeInlined\">substr<\/code> \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u043e\u043f\u043e\u043b\u0430\u043c.<\/li>\n<li data-value=\"4.\" data-shift=\"1\">\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <code class=\"CodeInlined\">\u2026<\/code>, \u0435\u0441\u043b\u0438 \u0442\u0435\u043a\u0441\u0442 \u0431\u044b\u043b \u043e\u0431\u0440\u0435\u0437\u0430\u043d.<\/li>\n<li data-value=\"5.\" data-shift=\"1\">\u042d\u043a\u0440\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0441\u043f\u0435\u0446\u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0447\u0435\u0440\u0435\u0437 <code class=\"CodeInlined\">htmlspecialchars<\/code>.<\/li>\n<\/ol>\n<hr \/>\n<h2>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u0433\u0434\u0435 \u044d\u0442\u043e \u0443\u043c\u0435\u0441\u0442\u043d\u043e<\/h2>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b<\/strong> \u2014 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u043f\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c (slug, ID, \u0444\u0438\u043b\u044c\u0442\u0440\u044b). \u042d\u0442\u043e \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 SQL\u2011\u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0439.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 <code class=\"CodeInlined\">is_published<\/code><\/strong> \u2014 \u0432\u0435\u0437\u0434\u0435, \u0433\u0434\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0432\u0438\u0434\u044f\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438. \u0427\u0435\u0440\u043d\u043e\u0432\u0438\u043a\u0438 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043f\u043e \u043f\u0440\u044f\u043c\u044b\u043c \u0441\u0441\u044b\u043b\u043a\u0430\u043c.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong><code class=\"CodeInlined\">htmlspecialchars<\/code><\/strong> \u2014 \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u043b\u044e\u0431\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u043b\u0438 \u0431\u044b\u0442\u044c \u043f\u043e\u0434 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f).<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong><code class=\"CodeInlined\">urlencode<\/code><\/strong> \u2014 \u043f\u0440\u0438 \u0432\u0441\u0442\u0430\u0432\u043a\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 URL.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong><code class=\"CodeInlined\">strip_tags<\/code> + <code class=\"CodeInlined\">mb_*<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/strong> \u2014 \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043d\u043e\u043d\u0441 \u0438\u0437 HTML\u2011\u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0435\u0437\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u044b.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0430 \u0434\u0435\u0442\u0430\u043b\u0435\u0439<\/strong> \u2014 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0411\u0414 \u0438 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0430\u043c.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u041a\u0430\u043a \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u0438\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439<\/h2>\n<p>\u0424\u0430\u0439\u043b index.php<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;!<\/span>DOCTYPE html<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #0066cc;\">html<\/span> lang=<span style=\"color: #ff0000;\">\"ru\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>head<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>meta charset=<span style=\"color: #ff0000;\">\"utf-8\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>meta <span style=\"color: #0066cc;\">name<\/span>=<span style=\"color: #ff0000;\">\"viewport\"<\/span> content=<span style=\"color: #ff0000;\">\"width=device-width, initial-scale=1\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>title<span style=\"color: #66cc66;\">&gt;<\/span>\u0411\u043b\u043e\u0433: \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438<span style=\"color: #66cc66;\">&lt;\/<\/span>title<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>link rel=<span style=\"color: #ff0000;\">\"stylesheet\"<\/span> href=<span style=\"color: #ff0000;\">\"site.css\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;\/<\/span>head<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>body<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>div <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"site-wrapper\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span> <span style=\"color: #66cc66;\">&lt;!<\/span>-- \u041d\u043e\u0432\u0430\u044f \u043e\u0431\u0451\u0440\u0442\u043a\u0430 --<span style=\"color: #66cc66;\">&gt;<\/span>\r\n      <span style=\"color: #66cc66;\">&lt;<\/span>header<span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>div <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"container header-content\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n          <span style=\"color: #66cc66;\">&lt;<\/span>a href=<span style=\"color: #ff0000;\">\".\/\"<\/span> <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"logo\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>Website<span style=\"color: #66cc66;\">&lt;\/<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>\r\n          <span style=\"color: #66cc66;\">&lt;<\/span>nav<span style=\"color: #66cc66;\">&gt;<\/span>\r\n            <span style=\"color: #66cc66;\">&lt;<\/span>ul<span style=\"color: #66cc66;\">&gt;<\/span>\r\n              <span style=\"color: #66cc66;\">&lt;<\/span>li<span style=\"color: #66cc66;\">&gt;&lt;<\/span>a href=<span style=\"color: #ff0000;\">\".\/\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\u0413\u043b\u0430\u0432\u043d\u0430\u044f<span style=\"color: #66cc66;\">&lt;\/<\/span>a<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>li<span style=\"color: #66cc66;\">&gt;<\/span>\r\n              <span style=\"color: #66cc66;\">&lt;<\/span>li<span style=\"color: #66cc66;\">&gt;&lt;<\/span>a href=<span style=\"color: #ff0000;\">\"\/articles\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\u0421\u0442\u0430\u0442\u044c\u0438<span style=\"color: #66cc66;\">&lt;\/<\/span>a<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>li<span style=\"color: #66cc66;\">&gt;<\/span>\r\n              <span style=\"color: #66cc66;\">&lt;<\/span>li<span style=\"color: #66cc66;\">&gt;&lt;<\/span>a href=<span style=\"color: #ff0000;\">\"\/about\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435<span style=\"color: #66cc66;\">&lt;\/<\/span>a<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>li<span style=\"color: #66cc66;\">&gt;<\/span>\r\n            <span style=\"color: #66cc66;\">&lt;\/<\/span>ul<span style=\"color: #66cc66;\">&gt;<\/span>\r\n          <span style=\"color: #66cc66;\">&lt;\/<\/span>nav<span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;\/<\/span>div<span style=\"color: #66cc66;\">&gt;<\/span>\r\n      <span style=\"color: #66cc66;\">&lt;\/<\/span>header<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n      <span style=\"color: #66cc66;\">&lt;<\/span>div <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"main-wrapper\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>aside <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"sidebar-left\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n          <span style=\"color: #66cc66;\">&lt;!<\/span>-- \u041b\u0435\u0432\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c --<span style=\"color: #66cc66;\">&gt;<\/span>\r\n          \u041b\u0435\u0432\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c\r\n        <span style=\"color: #66cc66;\">&lt;\/<\/span>aside<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>main <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"container\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n          <span style=\"color: #66cc66;\">&lt;<\/span>nav<span style=\"color: #66cc66;\">&gt;&lt;<\/span>a href=<span style=\"color: #ff0000;\">\"add_form.php\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e<span style=\"color: #66cc66;\">&lt;\/<\/span>a<span style=\"color: #66cc66;\">&gt;&lt;\/<\/span>nav<span style=\"color: #66cc66;\">&gt;<\/span>\r\n          <span style=\"color: #66cc66;\">&lt;<\/span>hr<span style=\"color: #66cc66;\">&gt;<\/span>\r\n          <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>empty<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>require <span style=\"color: #ff0000;\">'read_post_loop.php'<\/span>;<span style=\"color: #66cc66;\">}<\/span>?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n          <span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>isset<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'slug'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>require <span style=\"color: #ff0000;\">'read_post.php'<\/span>;<span style=\"color: #66cc66;\">}<\/span>?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;\/<\/span>main<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>aside <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"sidebar-right\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n        \u041f\u0440\u0430\u0432\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c\r\n          <span style=\"color: #66cc66;\">&lt;!<\/span>-- \u041f\u0440\u0430\u0432\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c --<span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;\/<\/span>aside<span style=\"color: #66cc66;\">&gt;<\/span>\r\n      <span style=\"color: #66cc66;\">&lt;\/<\/span>div<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n      <span style=\"color: #66cc66;\">&lt;<\/span>footer<span style=\"color: #66cc66;\">&gt;<\/span>\r\n        <span style=\"color: #66cc66;\">&lt;<\/span>p<span style=\"color: #66cc66;\">&gt;&amp;<\/span><span style=\"color: #0066cc;\">copy<\/span>; <span style=\"color: #cc66cc;\">2026<\/span> Website. \u0412\u0441\u0435 \u043f\u0440\u0430\u0432\u0430 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u044b.<span style=\"color: #66cc66;\">&lt;\/<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\r\n      <span style=\"color: #66cc66;\">&lt;\/<\/span>footer<span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;\/<\/span>div<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;\/<\/span>body<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>html<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438\u043b\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439 \u0437\u0434\u0435\u0441\u044c \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 GET\u2011\u0437\u0430\u043f\u0440\u043e\u0441\u0430\u00a0\u2014\u00a0\u0442\u043e \u0435\u0441\u0442\u044c \u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 URL.<\/p>\n<h2>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430<\/h2>\n<ul>\n<li data-value=\"\" data-shift=\"0\">\u0415\u0441\u043b\u0438 URL \u0442\u0430\u043a\u043e\u0439: <code class=\"CodeInlined\">site.com\/<\/code> \u0438\u043b\u0438 <code class=\"CodeInlined\">site.com\/articles<\/code> (\u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432) \u2192 <code class=\"CodeInlined\">$_GET<\/code> \u043f\u0443\u0441\u0442\u043e\u0439 \u2192 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c <strong>\u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439<\/strong>.<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0415\u0441\u043b\u0438 URL \u0442\u0430\u043a\u043e\u0439: <code class=\"CodeInlined\">site.com\/?slug=my-post<\/code> \u2192 \u0432 <code class=\"CodeInlined\">$_GET['slug']<\/code> \u0435\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2192 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c <strong>\u043e\u0434\u043d\u0443 \u0441\u0442\u0430\u0442\u044c\u044e<\/strong> \u0441 \u044d\u0442\u0438\u043c slug.<\/li>\n<\/ul>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code class=\"CodeInlined\">slug<\/code> \u0432 GET\u2011\u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0443: \u00ab\u043f\u043e\u043a\u0430\u0436\u0438 \u043d\u0435 \u0441\u043f\u0438\u0441\u043e\u043a, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c\u00bb.<\/p>\n<h2>\u0413\u0434\u0435 \u0432 \u043a\u043e\u0434\u0435 \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e<\/h2>\n<p>\u0412 HTML\u2011\u0444\u0430\u0439\u043b\u0435 \u0441\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 (\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u044b\u0431\u043e\u0440, \u0447\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c):<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<blockquote>\n<div><span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>empty<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>require <span style=\"color: #ff0000;\">&#8216;read_post_loop.php&#8217;<\/span>;<span style=\"color: #66cc66;\">}<\/span>?<span style=\"color: #66cc66;\">&gt;<\/span><\/div>\n<div><span style=\"color: #66cc66;\">&lt;<\/span>?php <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>isset<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">&#8216;slug&#8217;<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>require <span style=\"color: #ff0000;\">&#8216;read_post.php&#8217;<\/span>;<span style=\"color: #66cc66;\">}<\/span>?<span style=\"color: #66cc66;\">&gt;<\/span><\/div>\n<\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:<\/p>\n<ol>\n<li data-value=\"1.\" data-shift=\"1\"><code class=\"CodeInlined\">empty($_GET)<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u043d\u0435\u0442 \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 GET\u2011\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u2014 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 <code class=\"CodeInlined\">read_post_loop.php<\/code> (\u0441\u043f\u0438\u0441\u043e\u043a).<\/li>\n<li data-value=\"2.\" data-shift=\"1\"><code class=\"CodeInlined\">isset($_GET['slug'])<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0435\u0441\u0442\u044c \u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code class=\"CodeInlined\">slug<\/code>. \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u2014 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 <code class=\"CodeInlined\">read_post.php<\/code> (\u043e\u0434\u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044f).<\/li>\n<\/ol>\n<hr \/>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 URL:<\/h2>\n<p><code class=\"CodeInlined\">https:\/\/rcl-radio.ru\/test\/?slug=tablitsy-v-html-risuem-prostuyu-tablitsu<\/code><\/p>\n<h2>\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435<\/h2>\n<ol>\n<li data-value=\"1.\" data-shift=\"1\"><strong>\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 GET\u2011\u0437\u0430\u043f\u0440\u043e\u0441<\/strong> \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 <code class=\"CodeInlined\">https:\/\/rcl-radio.ru\/test\/<\/code> \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code class=\"CodeInlined\">slug<\/code> \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <code class=\"CodeInlined\">tablitsy-v-html-risuem-prostuyu-tablitsu<\/code>.<\/li>\n<li data-value=\"2.\" data-shift=\"1\"><strong>PHP \u0432\u0438\u0434\u0438\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440:<\/strong> \u0432 \u0441\u0443\u043f\u0435\u0440\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435 <code class=\"CodeInlined\">$_GET<\/code> \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u044c:\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">$_GET<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'slug'<\/span><span style=\"color: #66cc66;\">]<\/span> === <span style=\"color: #ff0000;\">'tablitsy-v-html-risuem-prostuyu-tablitsu'<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<li data-value=\"3.\" data-shift=\"1\"><strong>\u0421\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0432 \u0442\u0432\u043e\u0451\u043c HTML\u2011\u0444\u0430\u0439\u043b\u0435:<\/strong>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>isset<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'slug'<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    require <span style=\"color: #ff0000;\">'read_post.php'<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u2192 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 <strong>\u043e\u0434\u043d\u0443 \u0441\u0442\u0430\u0442\u044c\u044e<\/strong>.<\/li>\n<li data-value=\"4.\" data-shift=\"1\"><strong>\u0412\u043d\u0443\u0442\u0440\u0438 <code class=\"CodeInlined\">read_post.php<\/code> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0435\u0440\u0443\u0442 \u0438\u0437 GET \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043a \u0411\u0414:<\/strong>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\">$slug = trim<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'slug'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #808080; font-style: italic;\">\/\/ \u0434\u0430\u043b\u0435\u0435: WHERE slug = ? AND is_published = 1<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0438\u0449\u0435\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <code class=\"CodeInlined\">posts<\/code> \u0441\u0442\u0440\u043e\u043a\u0443, \u0433\u0434\u0435 <code class=\"CodeInlined\">slug<\/code> \u0442\u043e\u0447\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u0440\u0438\u0448\u0451\u043b \u0432 URL. \u0415\u0441\u043b\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430 (<code class=\"CodeInlined\">is_published = 1<\/code>)\u00a0\u2014\u00a0\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0451. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442\u00a0\u2014\u00a0\u043e\u0442\u0434\u0430\u0451\u0442 404.<\/li>\n<\/ol>\n<hr \/>\n<h2>\u0410 \u0435\u0441\u043b\u0438 URL \u0431\u0435\u0437 <code class=\"CodeInlined\">slug<\/code> (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code class=\"CodeInlined\">https:\/\/rcl-radio.ru\/test\/<\/code>)<\/h2>\n<p>\u0422\u043e\u0433\u0434\u0430:<\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><code class=\"CodeInlined\">$_GET<\/code> \u043f\u0443\u0441\u0442\u043e\u0439 \u2192 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442:\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>empty<span style=\"color: #66cc66;\">(<\/span>$_GET<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    require <span style=\"color: #ff0000;\">'read_post_loop.php'<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/li>\n<li data-value=\"\" data-shift=\"0\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 <code class=\"CodeInlined\">SELECT<\/code> \u0432\u0441\u0435\u0445 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 <strong>\u0441\u043f\u0438\u0441\u043e\u043a<\/strong>.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u041e\u0442\u043a\u0443\u0434\u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0442\u0430\u043a\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>\u0412 <code class=\"CodeInlined\">read_post_loop.php<\/code> \u0441\u0441\u044b\u043b\u043a\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 \u0442\u0430\u043a:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">php<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;<\/span>a href=<span style=\"color: #ff0000;\">\"?slug=&lt;?php echo htmlspecialchars(urlencode($row['slug'] ?? '')); ?&gt;\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n    <span style=\"color: #66cc66;\">&lt;<\/span>?php echo htmlspecialchars<span style=\"color: #66cc66;\">(<\/span>$row<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'title'<\/span><span style=\"color: #66cc66;\">]<\/span> ?? <span style=\"color: #ff0000;\">''<\/span><span style=\"color: #66cc66;\">)<\/span>; ?<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>a<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043a\u043b\u0438\u043a\u0430\u0435\u0442, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0431\u0435\u0440\u0451\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0430\u0434\u0440\u0435\u0441 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043a \u043d\u0435\u043c\u0443 <code class=\"CodeInlined\">?slug=\u2026<\/code>\u00a0\u2014\u00a0\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0440\u043e\u0432\u043d\u043e \u0442\u0430\u043a\u043e\u0439 GET\u2011\u0437\u0430\u043f\u0440\u043e\u0441, \u043a\u0430\u043a \u0432 \u0442\u0432\u043e\u0451\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435.<\/p>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0441\u0442\u0430\u0442\u0435\u0439:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-135568\" src=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-32-17.png\" alt=\"\" width=\"1153\" height=\"912\" srcset=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-32-17.png 1153w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-32-17-500x395.png 500w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-32-17-1024x810.png 1024w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-32-17-200x158.png 200w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-32-17-768x607.png 768w\" sizes=\"auto, (max-width: 1153px) 100vw, 1153px\" \/><\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-135569\" src=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-33-22.png\" alt=\"\" width=\"1153\" height=\"912\" srcset=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-33-22.png 1153w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-33-22-500x395.png 500w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-33-22-1024x810.png 1024w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-33-22-200x158.png 200w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2026-08-10-21-33-22-768x607.png 768w\" sizes=\"auto, (max-width: 1153px) 100vw, 1153px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0424\u0430\u0439\u043b read_post.php &lt;?php require &#8216;db_connect.php&#8217;; \u00a0 $slug = trim($_GET[&#8216;slug&#8217;] ?? &#187;); if ($slug === &#187;) { http_response_code(404); echo &#8216;\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430&#8217;; return; } \u00a0 \/\/ \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u2014 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 SQL\u2011\u0438\u043d\u044a\u0435\u043a\u0446\u0438\u0439 $sql = &#8216;SELECT id, title, slug, content, meta_description, is_published, created_at FROM posts WHERE slug = ? AND is_published = 1&#8217;; $stmt = mysqli_prepare($connection, $sql); [&hellip;]<\/p>\n","protected":false},"author":9194254,"featured_media":135473,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[557],"tags":[],"class_list":["post-135567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-557"],"views":13,"_links":{"self":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/9194254"}],"replies":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135567"}],"version-history":[{"count":2,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135567\/revisions"}],"predecessor-version":[{"id":135571,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135567\/revisions\/135571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/135473"}],"wp:attachment":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}