Widget:TestWidget: различия между версиями

Материал из Поле цифровой дидактики
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
<iframe src="http://example.com"></iframe>
<p>
    $filePath = __DIR__ . '/html_uploads/' . $name;
    if (file_exists($filePath)) {
        echo file_get_contents($filePath);
    } else {
        echo 'Ошибка: Файл "' . $name . '" не найден.';
    }
</p>

Версия от 08:12, 23 августа 2025

$filePath = __DIR__ . '/html_uploads/' . $name; if (file_exists($filePath)) { echo file_get_contents($filePath); } else { echo 'Ошибка: Файл "' . $name . '" не найден.'; }