ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Di <denyago@rambler.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] PHP и Apache2
Date: Sun, 11 Nov 2007 15:28:27 +0200
Message-ID: <4737037B.5040304@rambler.ru> (raw)
In-Reply-To: <423a41ab0711101900pb8a1d82yee7f9cc169f2d49b@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2451 bytes --]

Это уже для протокола =)
> 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/
>
> Короче говоря, он не хочет воспринимать переменные должным образом
до этого я ещё не добрался =/

[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 364 bytes --]

begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski sqr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80442480755
tel;pager:diyago@jabber.te.ua
tel;home:80442434512
tel;cell:80662933760
note:diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard


  reply	other threads:[~2007-11-11 13:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-10 17:59 Владимир Леонидов
2007-11-10 22:30 ` Di
2007-11-10 22:49   ` Владимир Леонидов
2007-11-10 22:58     ` Di
2007-11-11  3:00       ` Владимир Леонидов
2007-11-11 13:28         ` Di [this message]
2007-11-12  6:23 ` Алексей Шенцев
2007-11-12  7:48   ` Владимир Леонидов
2007-11-12  7:56     ` Алексей Шенцев

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=4737037B.5040304@rambler.ru \
    --to=denyago@rambler.ru \
    --cc=community@lists.altlinux.org \
    /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