From: "Roman V. Tutov" <tutov@aston.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Apache + php +mysql = непонятки с кодировками
Date: Fri, 14 Aug 2009 14:11:49 +0400
Message-ID: <200908141411.49892.tutov@aston.ru> (raw)
In-Reply-To: <20090814134929.067b35d4@v3405.naf.net.ru>
Friday 14 August 2009 13:49:29 Nikolay A. Fetisov wrote:
> > ЗЫ А как-же оно на хостинге работает тогда ???
>
> Например, с прибитыми гвоздями кодировками непосредственно в настройках
> MySQL, в виде чего-то типа
>
> default-character-set = cp1251
> character-set-server = cp1251
> collation-server = cp1251_general_ci
> init-connect = "SET NAMES cp1251"
Выполз еще один баг :(
на сайте форум некорректно работает ...
на хостинге все нормально ..а локальная копия сайта подглючивает ..
вместо страницы форума вываливается вот такой код
----------начало------------------
Вниз ' . _GEN_POST_NEW_TOPIC . ''; } else { echo '' .
_GEN_POST_NEW_TOPIC . ''; } } echo ' '; //pagination 1 if
(count($messages[0]) > 0) { echo '
* '; echo ''; echo _PAGE; echo '
* '; if (($page - 2) > 1) { echo '1
* '; echo "...
* "; } for ($i=($page - 2) <= 0 ? 1 : ($page - 2); $i <= $page + 2 && $i
<= ceil($total / $threads_per_page); $i++) { if ($page == $i) { echo "$i
* "; } else { echo '' . $i . '
* '; } } if ($page + 2 < ceil($total / $threads_per_page)) { echo "...
* "; echo '' . ceil($total / $threads_per_page) . '
'; } echo '
'; } ?>
----------конец-------------------
это различные версии PHP ? или я чтото от пхп недоустановил ?
next prev parent reply other threads:[~2009-08-14 10:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 6:45 Roman V. Tutov
2009-08-14 6:47 ` Alexey Morsov
2009-08-14 7:08 ` Roman V. Tutov
2009-08-14 7:11 ` Cергей Inhbgkbyu
2009-08-14 7:40 ` Roman V. Tutov
2009-08-14 9:30 ` Michael Shigorin
2009-08-14 9:49 ` Nikolay A. Fetisov
2009-08-14 10:11 ` Roman V. Tutov [this message]
2009-08-14 10:31 ` Nikolay A. Fetisov
2009-08-14 10:51 ` Roman V. Tutov
2009-08-14 12:28 ` Michael Shigorin
2009-08-14 7:20 ` Михаил Паршин ака SKeeper
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=200908141411.49892.tutov@aston.ru \
--to=tutov@aston.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