From: Anton Farygin <rider@altlinux.ru>
To: devel@linux.iplabs.ru
Subject: Re: [devel] [Fwd: [castle] Possible bug in php configs in Castle beta3]
Date: Fri, 02 Nov 2001 13:52:24 +0300
Message-ID: <3BE27AE8.6000500@altlinux.ru> (raw)
In-Reply-To: <20011102112314.A8602@pc152.belcaf.minsk.by>
Alexander Bokovoy wrote:
> On Fri, Nov 02, 2001 at 10:45:41AM +0300, Stanislav Ievlev wrote:
>
>>Не знаю что ето, но при попытке открыть страницу содержащую что-то наподобие:
>><?php
>> echo ("Test");
>>?>
[rider@rider rider]$ php
<?
echo ("test");
?>
X-Powered-By: PHP/4.0.6
Content-type: text/html
testSegmentation fault (core dumped)
Обана... не ожидал.
[rider@rider rider]$ cat >test.php
<?
echo ("test");
?>
[rider@rider rider]$ php test.php
X-Powered-By: PHP/4.0.6
Content-type: text/html
testSegmentation fault (core dumped)
Опять оно... что он падает то?
[rider@rider rider]$ rpm -qa|grep php
php-mysql-4.0.6-alt1
php-gd-4.0.6-alt1.1
php-sablot-4.0.6-alt1
asp2php-0.75.11-ipl2mdk
php-4.0.6-alt1
php-mnogosearch-4.0.6-alt1
php-curl-4.0.6-alt1
mod_php-4.0.6-alt1
php-common-4.0.6-alt1
php-manual-4.0.6-alt1
>>
>>ругается так:
>>Warning: Failed opening '/var/www/html/y/a.php' for inclusion (include_path='') in Unknown on line 0
>>
>>на белой странице.
>>
> Позволю себе предположить, что все-таки страница не настолько мала, как
> уважаемый пользователь хочет показать -- в ней где-то все-таки
> присутствует вызов include("a.php");
Похоже что так. ;-)
Кстати можно include_path менять прямо из скриптов. Выглядит это
следующим образом:
ini_set("include_path","/usr/share/php");
>
> В настройках по умолчанию отключен include_path, его нужно выставлять в
> конфигах самому. Не считаю, что это ошибка, наоборот, разумное
> ограничение настройки _по умолчанию_. Аналогично и в Apache по умолчанию отключена
> возможность реакции на .htaccess.
Конечно не ошибка. К тому же невозможно предусмотреть все пути доступа к
всем возможным скриптам у пользователя.
Человек явно не совсем давно использует PHP
Rgds
Rider
--
<?PHP
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2, or
* (at your option) any later version.
*/
echo "\n
___________________________________________________________________\n
___ _ _____ \n
( _ ) ( ) (_ _) | <a href=mailto:rider@altlinux.ru>Rider</a> \n
/ ___ \ | |_ | | | <a href=http://altlinux.ru>+70952039698 </a>\n
( / \ )(____)(_) | <a href=http://lrn.ru> LRN Team </a> \n
|~~~LINUX TEAM~~~| | \n
-------------------------------------------------------------------\n
";
?>
_______________________________________________
Devel mailing list
Devel@linux.iplabs.ru
http://www.logic.ru/mailman/listinfo/devel
next prev parent reply other threads:[~2001-11-02 10:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-02 7:45 Stanislav Ievlev
2001-11-02 9:23 ` Alexander Bokovoy
2001-11-02 10:52 ` Anton Farygin [this message]
2001-11-02 11:04 ` Alexander Bokovoy
2001-11-02 11:41 ` Alexander Bokovoy
2001-11-02 12:10 ` Dmitry V. Levin
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=3BE27AE8.6000500@altlinux.ru \
--to=rider@altlinux.ru \
--cc=devel@linux.iplabs.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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git