[Comm] PHP и Apache2

Di =?iso-8859-1?q?denyago_=CE=C1_rambler=2Eru?=
Вс Ноя 11 16:28:27 MSK 2007


Это уже для протокола =)
> 2) 2.php
> <?php echo("Hello!"); ?>
>   
Владимир Леонидов пишет:
> Тогда 2-й работает, а 1-й нет
>   

Причина:
; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = Off

так что правильнее писать <?php ... ?>
>   
>> А что говорится в логах?
>> tail /var/log/httpd2/error_log - к примеру...
>>     
>
> [Sun Nov 11 05:55:08 2007] [error] [client 127.0.0.1] PHP Notice:
> Undefined variable: gzipuse in /var/www/apache2/html/index.php on line
> 5
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] PHP Notice:
> Undefined variable: gzipuse in /var/www/apache2/html/index.php on line
> 5
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] PHP Warning:
> session_start(): Cannot send session cookie - headers already sent by
> (output started at /var/www/apache2/html/functions.php:40) in
> /var/www/apache2/html/index.php on line 10
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] PHP Warning:
> session_start(): Cannot send session cache limiter - headers already
> sent (output started at /var/www/apache2/html/functions.php:40) in
> /var/www/apache2/html/index.php on line 10
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] PHP Fatal error:
>  Call to undefined function ip() in /var/www/apache2/html/index.php on
> line 16
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] File does not
> exist: /var/www/apache2/html/\\"$q[1]\\", referer: http://localhost/
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] File does not
> exist: /var/www/apache2/html/.$ee[1]., referer: http://localhost/
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] File does not
> exist: /var/www/apache2/html/\\"$zamena\\", referer: http://localhost/
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] File does not
> exist: /var/www/apache2/html/$logo, referer: http://localhost/
> [Sun Nov 11 05:55:37 2007] [error] [client 127.0.0.1] File does not
> exist: /var/www/apache2/html/templates/$templ_name, referer:
> http://localhost/
>
> Короче говоря, он не хочет воспринимать переменные должным образом
до этого я ещё не добрался =/
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : denyago.vcf
Тип     : text/x-vcard
Размер  : 364 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/community/attachments/20071111/81903429/attachment-0002.vcf>


Подробная информация о списке рассылки community