<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>Прочие вопросы по PHP</title>
    <description>Вопросы по теории, проектированию и прочее касаемо работы с PHP</description>
    <pubDate>Tue, 14 Apr 2026 21:05:19 +0000</pubDate>
    <lastBuildDate>Tue, 14 Apr 2026 21:05:19 +0000</lastBuildDate>
    <generator>Форум PHP Программистов | PHP.ru</generator>
    <link>https://php.ru/forum/forums/prochie-voprosy-po-php.5/</link>
    <atom:link rel="self" type="application/rss+xml" href="https://php.ru/forum/forums/prochie-voprosy-po-php.5/index.rss"/>
    <item>
      <title>Протокол httpS локально - такое возможно?</title>
      <pubDate>Sat, 29 Nov 2025 11:16:00 +0000</pubDate>
      <link>https://php.ru/forum/threads/protokol-https-lokalno-takoe-vozmozhno.100961/</link>
      <guid>https://php.ru/forum/threads/protokol-https-lokalno-takoe-vozmozhno.100961/</guid>
      <author>invalid@example.com (A41523)</author>
      <dc:creator>A41523</dc:creator>
      <content:encoded><![CDATA[Доброго времени суток всем. Есть вида, XAMPP  как можно на сегодняшний день сделать локальный сайт , работающий на протоколе httpS?]]></content:encoded>
      <slash:comments>5</slash:comments>
    </item>
    <item>
      <title>Не работает поиск сайта php.ru</title>
      <pubDate>Thu, 10 Jul 2025 11:10:44 +0000</pubDate>
      <link>https://php.ru/forum/threads/ne-rabotaet-poisk-sajta-php-ru.104152/</link>
      <guid>https://php.ru/forum/threads/ne-rabotaet-poisk-sajta-php-ru.104152/</guid>
      <author>invalid@example.com (Hfibl)</author>
      <dc:creator>Hfibl</dc:creator>
      <content:encoded><![CDATA[Здравствуйте!<br />
Почему не работает поиск на сайте?<br />
Выводится вот такое сообщение:<br />


	<a href="https://www.php.ru/forum/attachments/7002/" target="_blank">Посмотреть вложение 7002</a>]]></content:encoded>
      <slash:comments>10</slash:comments>
    </item>
    <item>
      <title>PHP8 xdebug3 var_dump windows-1251 - не работает</title>
      <pubDate>Mon, 27 Jan 2025 03:44:36 +0000</pubDate>
      <link>https://php.ru/forum/threads/php8-xdebug3-var_dump-windows-1251-ne-rabotaet.103037/</link>
      <guid>https://php.ru/forum/threads/php8-xdebug3-var_dump-windows-1251-ne-rabotaet.103037/</guid>
      <author>invalid@example.com (axdr)</author>
      <dc:creator>axdr</dc:creator>
      <content:encoded><![CDATA[В такой комбинации var_dump выводит не все русские символы. Кто-нибудь сталкивался? В чем причина?<br />
<br />
Раньше в PHP7 такой проблемы не было. Как только установил PHP8, сразу появилась.<br />
У меня операционная система - Windows 10. Web-сервер Apache 2.4<br />
Скрипт в кодировке Windows-1251<br />
  <br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; header('Content-Type:text/html;charset=Windows-1251');</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; $s = 'мнопрсту';</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; echo $s;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; var_dump($s);</div></li>
</ol></div>
</div>Выводит<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; мнопрсту</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; D:\web\test_00.php:6:string 'мноп'...</div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/php8-xdebug3-var_dump-windows-1251-ne-rabotaet.103037/" target="_blank" class="externalLink" rel="nofollow">PHP8 xdebug3 var_dump windows-1251 - не работает</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Асинхронность на PHP для shared hosting</title>
      <pubDate>Fri, 10 Jan 2025 16:27:42 +0000</pubDate>
      <link>https://php.ru/forum/threads/asinxronnost-na-php-dlja-shared-hosting.103018/</link>
      <guid>https://php.ru/forum/threads/asinxronnost-na-php-dlja-shared-hosting.103018/</guid>
      <author>invalid@example.com (fomiash)</author>
      <dc:creator>fomiash</dc:creator>
      <content:encoded><![CDATA[Приветствую! Сначала расскажу предысторию<img src="styles/default/xenforo/clear.png" class="mceSmilieSprite mceSmilie1" alt=":)" title="Smile    :)" /> Меня давно интересуют разные асинхронные и многопоточные штуки вроде RoadRunner, swoole и тд. Локально это все пробовал, но те сайты, которые есть, пока не выросли за пределы общего хостинга, однако ради эксперимента решил перевести некоторые на асинхронность. Архитектура существующих веб серверов с асинхронностью на PHP для этого не подходит. На днях написал для этого специальную <a href="https://github.com/phphleb/webrotor" target="_blank" class="externalLink" rel="nofollow">библиотеку</a>, вижу,...<br />
<br />
<a href="https://php.ru/forum/threads/asinxronnost-na-php-dlja-shared-hosting.103018/" target="_blank" class="externalLink" rel="nofollow">Асинхронность на PHP для shared hosting</a>]]></content:encoded>
    </item>
    <item>
      <title>Время действия ini_set('session.save_path' ...)</title>
      <pubDate>Tue, 03 Dec 2024 09:49:10 +0000</pubDate>
      <link>https://php.ru/forum/threads/vremja-dejstvija-ini_set-session-save_path.102946/</link>
      <guid>https://php.ru/forum/threads/vremja-dejstvija-ini_set-session-save_path.102946/</guid>
      <author>invalid@example.com (iurii)</author>
      <dc:creator>iurii</dc:creator>
      <content:encoded><![CDATA[Не нашёл в документации ответа на вопрос: прописывать место хранения файла сессии необходимо при переходе в каждый новый скрипт? Или оно сохраняется в недрах PHP на время жизни текущей сессии?]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Браузерная игра</title>
      <pubDate>Sun, 01 Dec 2024 00:38:17 +0000</pubDate>
      <link>https://php.ru/forum/threads/brauzernaja-igra.102949/</link>
      <guid>https://php.ru/forum/threads/brauzernaja-igra.102949/</guid>
      <author>invalid@example.com (dcc0)</author>
      <dc:creator>dcc0</dc:creator>
      <content:encoded><![CDATA[Старьё. Написал когда-то за день. Недавно подпилил ещё.<br />
Максимально простая.<br />
Тип боя: разгадывание тактики.<br />
Требуется: PHP5.6<br />
Драйвер mysql.<br />
<br />
P.S. Может, если кто-то совсем 0 и захочет повтыкать в максимально простой движок.<br />
Есть:<br />
1) Регистрация<br />
2) Авторизация через сессии<br />
3) Напоминание пароля<br />
4) Бой (с игроком или ботом)<br />
5) Чат<br />
6) Телеграммы через mail<br />
7) Анкета<br />
<br />
Архив:<br />
<a href="https://gitflic.ru/project/dcc0/indeicy-onlain-igra" target="_blank" class="externalLink" rel="nofollow">https://gitflic.ru/project/dcc0/indeicy-onlain-igra</a><br />
Тест:<br />
<a href="http://mol0tlix.beget.tech/chat/index.php" target="_blank" class="externalLink" rel="nofollow">http://mol0tlix.beget.tech/chat/index.php</a>...<br />
<br />
<a href="https://php.ru/forum/threads/brauzernaja-igra.102949/" target="_blank" class="externalLink" rel="nofollow">Браузерная игра</a>]]></content:encoded>
    </item>
    <item>
      <title>Обновление страницы</title>
      <pubDate>Fri, 29 Nov 2024 21:17:47 +0000</pubDate>
      <link>https://php.ru/forum/threads/obnovlenie-stranicy.102943/</link>
      <guid>https://php.ru/forum/threads/obnovlenie-stranicy.102943/</guid>
      <author>invalid@example.com (FunDDPipple)</author>
      <dc:creator>FunDDPipple</dc:creator>
      <content:encoded><![CDATA[Всем привет! Я решил изучить более нормальный язык програмирование чем PAWN, сделал мини-код<br />
и когда запускается страница, она не обновляется т.е старый текст остается, что делать?<br />
(Иногда обновленяется только когда перезапущу код или снова зайду в Visual Studio Code)]]></content:encoded>
    </item>
    <item>
      <title>Гугл Хром не видит версию для мобильных устройсв</title>
      <pubDate>Thu, 07 Nov 2024 10:00:42 +0000</pubDate>
      <link>https://php.ru/forum/threads/gugl-xrom-ne-vidit-versiju-dlja-mobilnyx-ustrojsv.102899/</link>
      <guid>https://php.ru/forum/threads/gugl-xrom-ne-vidit-versiju-dlja-mobilnyx-ustrojsv.102899/</guid>
      <author>invalid@example.com (Econaft)</author>
      <dc:creator>Econaft</dc:creator>
      <content:encoded><![CDATA[Ниже код, который до недавнего времени везде работал.<br />
Он и сейчас продолжает работать во всех браузерах. Но в Хроме недавно перестало работать.<br />
<br />
Что нужно изменить в коде, чтобы в хроме тоже заработало?<br />
<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">////////////////////////////мобильные устройства</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$tablet_browser</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$mobile_browser</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a target="_blank" rel="nofollow" href="http://www.php.net/preg_match"><span style="color: #990000;">preg_match</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))/i'</span><span style="color: #339933;">,</span> <a target="_blank" rel="nofollow" href="http://www.php.net/strtolower"><span style="color: #990000;">strtolower</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_USER_AGENT'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$tablet_browser</span><span style="color: #339933;">++;</span> <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span><span style="color: #339933;">...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/gugl-xrom-ne-vidit-versiju-dlja-mobilnyx-ustrojsv.102899/" target="_blank" class="externalLink" rel="nofollow">Гугл Хром не видит версию для мобильных устройсв</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Помогите найти галерею</title>
      <pubDate>Tue, 08 Oct 2024 13:53:55 +0000</pubDate>
      <link>https://php.ru/forum/threads/pomogite-najti-galereju.99293/</link>
      <guid>https://php.ru/forum/threads/pomogite-najti-galereju.99293/</guid>
      <author>invalid@example.com (Zaibatsu)</author>
      <dc:creator>Zaibatsu</dc:creator>
      <content:encoded><![CDATA[Здравствуйте, помогите пожалуйста найти галерею, которая выглядела бы аналогичным образом, желательно для wordpress <a href="https://prnt.sc/w13toQ2NcNE9" target="_blank" class="externalLink" rel="nofollow">https://prnt.sc/w13toQ2NcNE9</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Проблемы при взаимодействии с битрикс24</title>
      <pubDate>Tue, 08 Oct 2024 13:52:34 +0000</pubDate>
      <link>https://php.ru/forum/threads/problemy-pri-vzaimodejstvii-s-bitriks24.99517/</link>
      <guid>https://php.ru/forum/threads/problemy-pri-vzaimodejstvii-s-bitriks24.99517/</guid>
      <author>invalid@example.com (L1nker)</author>
      <dc:creator>L1nker</dc:creator>
      <content:encoded><![CDATA[Здравствуйте, у меня возникла проблема. После установки ssl сертификата на сайт, перестало работать приложение синхронизации базы данных с лидами битрикс. А именно, появляются лиды, но информация (фио, email) в них не передается. С чем это может быть связанно и как решить эту проблему?]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>php json_decode не работает</title>
      <pubDate>Mon, 15 Jul 2024 05:17:35 +0000</pubDate>
      <link>https://php.ru/forum/threads/php-json_decode-ne-rabotaet.36577/</link>
      <guid>https://php.ru/forum/threads/php-json_decode-ne-rabotaet.36577/</guid>
      <author>invalid@example.com (wer_wolf)</author>
      <dc:creator>wer_wolf</dc:creator>
      <content:encoded><![CDATA[Помогите немогу понять где косяк есть два сайта на одном лежит база с которой работает скрипт на втором нужно получить и обработать данные от первого<br />
<br />
на сайте с базой текст такой<br />
<br />
<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (PHP):</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$r </span><span style="color: #339933;">=</span> sqlsrv_query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$conn</span><span style="color: #339933;">,</span> <span style="color: #000088;">$catl</span><span style="color: #009900;">&#41;</span> or <a target="_blank" rel="nofollow" href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cannot get orders&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000088;">$tmp</span><span style="color: #339933;">=</span><a target="_blank" rel="nofollow" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row </span><span style="color: #339933;">=</span> sqlsrv_fetch_array<span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #339933;">,</span>SQLSRV_FETCH_ASSOC<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #000088;">$tmp</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$row</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'menu'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$tmp</span><span style="color: #339933;">;</span>    </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;">&#125;</span>    </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><a target="_blank" rel="nofollow" href="http://www.php.net/json_encode"><span style="color: #990000;">json_encode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li>
</ol></div>
</div>на второй сайте...<br />
<br />
<a href="https://php.ru/forum/threads/php-json_decode-ne-rabotaet.36577/" target="_blank" class="externalLink" rel="nofollow">php json_decode не работает</a>]]></content:encoded>
      <slash:comments>14</slash:comments>
    </item>
    <item>
      <title>Получение имен файлов из каталога</title>
      <pubDate>Sun, 17 Mar 2024 12:53:58 +0000</pubDate>
      <link>https://php.ru/forum/threads/poluchenie-imen-fajlov-iz-kataloga.102150/</link>
      <guid>https://php.ru/forum/threads/poluchenie-imen-fajlov-iz-kataloga.102150/</guid>
      <author>invalid@example.com (Dikobraska)</author>
      <dc:creator>Dikobraska</dc:creator>
      <content:encoded><![CDATA[Всем доброго! У меня возникла проблема в получении имен файлов в создаваемом каталоге. Имеется код, он рабочий. В нем также закомментированные строки которые также работают и создают запись в файл. Суть в том ,что я не могу получить имена созданных файлов если использую закомментированный код. Второй файл, это что выводит в игру полученные имена из каталога. Кто то может знает в чем ошибка.<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$email</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <a target="_blank" rel="nofollow" href="http://www.php.net/htmlspecialchars"><span style="color: #990000;">htmlspecialchars</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$title</span> <span style="color: #339933;">=...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/poluchenie-imen-fajlov-iz-kataloga.102150/" target="_blank" class="externalLink" rel="nofollow">Получение имен файлов из каталога</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Почему API VK отдаёт неправильную кодировку?</title>
      <pubDate>Fri, 15 Mar 2024 10:30:09 +0000</pubDate>
      <link>https://php.ru/forum/threads/pochemu-api-vk-otdajot-nepravilnuju-kodirovku.102152/</link>
      <guid>https://php.ru/forum/threads/pochemu-api-vk-otdajot-nepravilnuju-kodirovku.102152/</guid>
      <author>invalid@example.com (Evgenylebedevv)</author>
      <dc:creator>Evgenylebedevv</dc:creator>
      <content:encoded><![CDATA[В сообществе в Вконтакте создано оповещение о событии <b>market_order_new</b> (создание заказа), через Callback API. <a href="https://php.ru/forum/attachments/screenshot_2-jpg.6839/?temp_hash=6bb100589fea4d5f6a05740f21198894" target="_blank" class="externalLink" rel="nofollow">Screenshot_2.jpg</a><br />
<a href="https://dev.vk.com/ru/api/community-events/json-schema#market_order_new" target="_blank" class="externalLink" rel="nofollow">https://dev.vk.com/ru/api/community-events/json-schema#market_order_new</a><br />
То есть при создании заказа в магазине в ВК, отдаётся объект заказа (запрос). <br />
<br />
Если покупатель делает заказ через браузер, то отдается корректный объект с правильной...<br />
<br />
<a href="https://php.ru/forum/threads/pochemu-api-vk-otdajot-nepravilnuju-kodirovku.102152/" target="_blank" class="externalLink" rel="nofollow">Почему API VK отдаёт неправильную кодировку?</a>]]></content:encoded>
    </item>
    <item>
      <title>HTML код в письме</title>
      <pubDate>Wed, 28 Feb 2024 06:09:53 +0000</pubDate>
      <link>https://php.ru/forum/threads/html-kod-v-pisme.102094/</link>
      <guid>https://php.ru/forum/threads/html-kod-v-pisme.102094/</guid>
      <author>invalid@example.com (Dremax)</author>
      <dc:creator>Dremax</dc:creator>
      <content:encoded><![CDATA[Привет<br />
Я считал сайт через file_get_content и отправил всё это на почту<br />
В письме пришел хтмл код<br />
Надо отобразить весь код в письме как сайт<br />
Подсказали,что надо писать в заголовке<b> Content-Type: text/html</b><br />
Но это не сработало<br />
Подскажите<br />
[[ -- в поисковике искал,у чата GPT спрашивал -- ]]<br />
<br />
mail(&quot;<a href="mailto:xxx@mail.ru">xxx@mail.ru</a>&quot;, &quot;Content-Type: text/html&quot;, &quot;$p&quot;);]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>Если ли в PHP такая возможность</title>
      <pubDate>Wed, 21 Feb 2024 10:51:33 +0000</pubDate>
      <link>https://php.ru/forum/threads/esli-li-v-php-takaja-vozmozhnost.102083/</link>
      <guid>https://php.ru/forum/threads/esli-li-v-php-takaja-vozmozhnost.102083/</guid>
      <author>invalid@example.com (Nail2010)</author>
      <dc:creator>Nail2010</dc:creator>
      <content:encoded><![CDATA[Вот пример<br />
<br />
function myFunct(){<br />
return &quot;data&quot;;<br />
}<br />
<br />
function myFunctSecond(){<br />
$data = myFunct();<br />
return $data;<br />
}<br />
<br />
echo myFunctSecond();<br />
<br />
Можно ли просто завершить myFunctSecond(), исходя из функции myFunct()? Пример может не совсем удачный, но описывает суть... В больших проектах это бы сократило код..]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>Фукнция rrr();</title>
      <pubDate>Thu, 01 Feb 2024 18:12:41 +0000</pubDate>
      <link>https://php.ru/forum/threads/fukncija-rrr.102028/</link>
      <guid>https://php.ru/forum/threads/fukncija-rrr.102028/</guid>
      <author>invalid@example.com (Dremax)</author>
      <dc:creator>Dremax</dc:creator>
      <content:encoded><![CDATA[Почему функция rrr(); не срабатывает? <br />
<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">rrr<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> rrr<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$k1</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'2'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$d1</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$p1</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$tt</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$pp</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$dd</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$korabl4</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$rr</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">102</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$start</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'40'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">102</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$r</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'0'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$start</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'40'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$start</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a target="_blank" rel="nofollow" href="http://www.php.net/rand"><span style="color: #990000;">rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$r</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'1'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$start</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'1'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$k1</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'1'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$r</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$start</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'40'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$start</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'1'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$k1</span><span style="color: #339933;">!=</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$rer</span><span style="color: #339933;">=</span><a target="_blank" rel="nofollow" href="http://www.php.net/rand"><span style="color: #990000;">rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rer</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/fukncija-rrr.102028/" target="_blank" class="externalLink" rel="nofollow">Фукнция rrr();</a>]]></content:encoded>
      <slash:comments>7</slash:comments>
    </item>
    <item>
      <title>[ Кибершахматы ] на PHP</title>
      <pubDate>Mon, 29 Jan 2024 09:49:10 +0000</pubDate>
      <link>https://php.ru/forum/threads/kibershaxmaty-na-php.101958/</link>
      <guid>https://php.ru/forum/threads/kibershaxmaty-na-php.101958/</guid>
      <author>invalid@example.com (Dremax)</author>
      <dc:creator>Dremax</dc:creator>
      <content:encoded><![CDATA[Разрабатываю эту программу 8 лет,код написан на PHP 5.2<br />
<br />
Сделал 8 уникальных вариантов шахмат.Там 8 новых фигур с новыми ходами,зачисление баллов,огонь,бомба,домик<br />
<br />
Около 16 новых правил<br />
<br />
Есть форум,галерея,архив досок,логи,описание,рейтинги,оповещения,обратная связь,чаты<br />
<br />
Сейчас в телеграме 2 подписчика,пишут что хотят сыграть<br />
<br />
Исходник сайта оцениваю в 260 000р,упорно работал 8 лет над развитием программы<br />
<br />
Совсем недавно пописал в css opacity: 0.9; - и офигел как красиво...<br />
<br />
<a href="https://php.ru/forum/threads/kibershaxmaty-na-php.101958/" target="_blank" class="externalLink" rel="nofollow">[ Кибершахматы ] на PHP</a>]]></content:encoded>
      <slash:comments>97</slash:comments>
    </item>
    <item>
      <title>Редактор всех файлов PHP</title>
      <pubDate>Mon, 15 Jan 2024 08:18:12 +0000</pubDate>
      <link>https://php.ru/forum/threads/redaktor-vsex-fajlov-php.101971/</link>
      <guid>https://php.ru/forum/threads/redaktor-vsex-fajlov-php.101971/</guid>
      <author>invalid@example.com (Dremax)</author>
      <dc:creator>Dremax</dc:creator>
      <content:encoded><![CDATA[Интересно, есть ли редакторы PHP, чтобы абсолютно во всех файлах поменять функцию PHP 5.2 на функцию PHP 7.1 ?<br />
<br />
Мне бы это очень помогло<br />
<br />
Мне исправить надо примерно 4000-6000 функций в старой программе,код весит 21 МБ<br />
<br />
Кажется у меня на PHP 7.1 появляются проблемы с isset , set cookie , fopen и fclose<br />
<br />
Подскажите название редактора<br />
<br />
<b>[[[--</b> Спасибо <b>--]]]</b>]]></content:encoded>
      <slash:comments>9</slash:comments>
    </item>
    <item>
      <title>Непонятные для меня скрипты</title>
      <pubDate>Wed, 03 Jan 2024 05:04:36 +0000</pubDate>
      <link>https://php.ru/forum/threads/neponjatnye-dlja-menja-skripty.101951/</link>
      <guid>https://php.ru/forum/threads/neponjatnye-dlja-menja-skripty.101951/</guid>
      <author>invalid@example.com (bikerlex)</author>
      <dc:creator>bikerlex</dc:creator>
      <content:encoded><![CDATA[Столкнулся впервые с такими скриптами, не могу понять что это и что оно делает. Нагуглить объяснения тоже не выходит. Похоже какой-то вредоносный, но как он работает?<br />
<br />
Кусок кода:<br />


<div class="bbCodeBlock bbCodePHP">
	<div class="type">PHP:</div>
	<div class="code"><ol class="php" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> goto b411d<span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">e99e7<span style="color: #339933;">:</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$<span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#123;</span><span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\x47</span><span style="color: #660099; font-weight: bold;">\x4c</span><span style="color: #660099; font-weight: bold;">\x4f</span><span style="color: #660099; font-weight: bold;">\x42</span><span style="color: #660099; font-weight: bold;">\101</span><span style="color: #660099; font-weight: bold;">\x4c</span><span style="color: #660099; font-weight: bold;">\123</span>&quot;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\x6b</span><span style="color: #660099; font-weight: bold;">\x71</span><span style="color: #660099; font-weight: bold;">\153</span><span style="color: #660099; font-weight: bold;">\153</span><span style="color: #660099; font-weight: bold;">\151</span><span style="color: #660099; font-weight: bold;">\161</span><span style="color: #660099; font-weight: bold;">\x79</span><span style="color: #660099; font-weight: bold;">\x67</span><span style="color: #660099; font-weight: bold;">\152</span><span style="color: #660099; font-weight: bold;">\151</span><span style="color: #660099; font-weight: bold;">\x69</span>&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #660099; font-weight: bold;">\172</span>&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">goto bfd51<span style="color: #339933;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">F940b<span style="color: #339933;">:...</span></div></li>
</ol></div>
</div><a href="https://php.ru/forum/threads/neponjatnye-dlja-menja-skripty.101951/" target="_blank" class="externalLink" rel="nofollow">Непонятные для меня скрипты</a>]]></content:encoded>
      <slash:comments>8</slash:comments>
    </item>
    <item>
      <title>Как создать Классы по XSD в php?</title>
      <pubDate>Sun, 10 Dec 2023 11:56:42 +0000</pubDate>
      <link>https://php.ru/forum/threads/kak-sozdat-klassy-po-xsd-v-php.101345/</link>
      <guid>https://php.ru/forum/threads/kak-sozdat-klassy-po-xsd-v-php.101345/</guid>
      <author>invalid@example.com (kedrach)</author>
      <dc:creator>kedrach</dc:creator>
      <content:encoded><![CDATA[Есть сложный xsd<br />
<br />
<a href="https://rosleshoz.gov.ru/xmlns/forestDeclaration/4.3/forestDeclaration.xsd" target="_blank" class="externalLink" rel="nofollow">Ссылка</a><br />
<br />
Перелопатил весь интернет и все решения. Хочу автоматизировать процесс создания XML документов на основе XSD файла.<br />
<br />
Искал решения по типу xsd to php class converter. Ничего путного, все работает через ж.<br />
<br />
Может быть, подскажете, как можно собрать все это в одну кучу?]]></content:encoded>
      <slash:comments>10</slash:comments>
    </item>
  </channel>
</rss>
