На главную Наши проекты:
Журнал   ·   Discuz!ML   ·   Wiki   ·   DRKB   ·   Помощь проекту
ПРАВИЛА FAQ Помощь Участники Календарь Избранное RSS
msm.ru
Модераторы: Serafim, fatalist
  
    > auto_prepend_file и get_included_files , Файл указанный в auto_prepend_file отображается в массиве от get_included_files( );
      В документации на get_included_files написано
      Цитата
      Замечание:
      Файлы, включенные с помощью директивы auto_prepend_file, не попадут в возвращаемый массив.
      У меня же почему-то файл test.php всё равно отображается
      ExpandedWrap disabled
        Array
        (
            [0] => E:\htdосs\domain_1\test.php
        )


      ось WinXP 32 bit, Apache 2.2, PHP 5.3.24

      в .htaccess только одна строка
      ExpandedWrap disabled
        php_value   auto_prepend_file E:/htdосs/domain_1/test.php

      в test.php
      ExpandedWrap disabled
        <?php
         
        echo '<h3>get_included_files()</h3><pre>';print_r(get_included_files());echo '</pre>';
         
         
        echo '<h1>Ok!</h1>';


      в файле index.php
      ExpandedWrap disabled
        <?php
         
        echo '<h1>file index.php</h1>';
      Оба файла в корне сайта. Вызываю домен без указания индекс-файла. В httpd.conf
      ExpandedWrap disabled
        DirectoryIndex index.html index.php
      ВОПРОС: Куда копать? :scratch:
      0 пользователей читают эту тему (0 гостей и 0 скрытых пользователей)
      0 пользователей:


      Рейтинг@Mail.ru
      [ Script execution time: 0,1346 ]   [ 15 queries used ]   [ Generated: 29.03.24, 12:04 GMT ]