From: Egor Grebnev <gregean@divo.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Глупый вопрос по PHP
Date: Tue Apr 16 13:39:19 2002
Message-ID: <20020416100356.69CD747463@madelene.sergievposad.org> (raw)
In-Reply-To: <20020416120417.01c2e592.kosha@kp.ru>
Насколько я смог понять, проблема в следующем.
Всякие приложения вроде PHPNuke используют инклуды, которые также используют
инклуды, которые используют инклуды :)
Приведенная ниже конструкция в моем случае приводит к ошибке
Warning: Failed opening 'includes2/test3.php' for inclusion
(include_path='/usr/lib/php') in /var/www/html/test/includes/test2.php on
line 2)
Имеем test.php в корневом каталоге следующего содержания:
<?
include 'includes/test2.php';
?>
Здесь все нормально. Далее test2.php в каталоге includes:
<?
include 'includes2/test3.php';
?>
test3.php в includes2 содержит:
<?
phpinfo();
?>
что, впрочем, уже не важно.
Таким образом, приложения, которые я пытаюсь запустить, явно подразумевают,
что пути, указанные в инклудах, рассчитываются не от самих инклудов, а от
файлов, которые их вызывают.
А на практике у меня выходит как раз наоборот.
Так в чем же дело? И почему в Master Beta 1 это все работало?
On Tuesday 16 April 2002 12:04, you wrote:
> Tue, 16 Apr 2002 12:23:30 +0400
>
> Egor Grebnev <gregean@divo.ru> Писал:
> > On Tuesday 16 April 2002 08:49, you wrote:
> >
> > Проблемы происходят с phpNuke. Архив mainfile оттуда к письму приложен.
> >
> > Еще меня в недоумение приводит следующее.
> >
> > На Master Beta 1 все работало.
> >
> > На Master Beta 2 после установки выпадало множество warnings, но браузер
> > _что-то_ показывал.
>
> что показывал и каких warnings ...скорее всего проблема была в одном из
> неустановленных модулей.
>
> > На Master Beta 2 после переустановки apache теперь вообще ничего не видно
> > :(
>
> Что в логах ? попробуйте сами сделать конструкцию require и посмотреть что
> будет. А вообше лучше купить книгу или полистать manual по php.
>
> _______________________________________________
> Mandrake-russian mailing list
> Mandrake-russian@altlinux.ru
> http://altlinux.ru/mailman/listinfo/mandrake-russian
next prev parent reply other threads:[~2002-04-16 13:39 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 23:50 Egor Grebnev
2002-04-15 23:59 ` Egor Grebnev
2002-04-16 8:49 ` Korshunov Ilya
2002-04-16 11:59 ` Egor Grebnev
2002-04-16 12:04 ` Korshunov Ilya
2002-04-16 13:39 ` Egor Grebnev [this message]
2002-04-16 13:50 ` Korshunov Ilya
2002-04-16 13:57 ` Egor Grebnev
2002-04-16 14:04 ` Korshunov Ilya
2002-04-16 14:10 ` Egor Grebnev
2002-04-16 14:26 ` [mdk-re] " Artem K. Jouravsky
2002-04-16 15:03 ` Egor Grebnev
2002-04-16 15:06 ` Korshunov Ilya
2002-04-16 15:14 ` Egor Grebnev
2002-04-16 15:24 ` Alexander Bokovoy
2002-04-16 15:41 ` Egor Grebnev
2002-04-16 16:08 ` Alexander Bokovoy
2002-04-16 16:18 ` Egor Grebnev
2002-04-16 16:53 ` Alexander Bokovoy
2002-04-16 17:14 ` Egor Grebnev
2002-04-16 17:43 ` Alexander Bokovoy
2002-04-16 15:23 ` Michael Shigorin
2002-04-16 15:34 ` Alexander Bokovoy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020416100356.69CD747463@madelene.sergievposad.org \
--to=gregean@divo.ru \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git