'php' に関するエントリ

Qdmail × Postfixで注意

2009年2月19日(木曜日)
add to hatena hatena.comment 3 users add to del.icio.us 0 user add to livedoor.clip 0 user

イケテルQdmailのバージョン1.2.6b × Postfixでのお話。

(more…)

Symfonyで持続的ログイン

2008年10月3日(金曜日)
add to hatena hatena.comment 0 user add to del.icio.us 0 user add to livedoor.clip 0 user

Symfonyで実装するサンプルを探しまわってたら本家にまんまあった orz

symfony | Web PHP Framework | The symfony Cookbook | How to achieve persistent sessions with cookies?

sfFormでsetPreValidatorとsfValidatorCallbackを使って条件分岐させてみた

2008年9月25日(木曜日)
add to hatena hatena.comment 2 users add to del.icio.us 0 user add to livedoor.clip 0 user

Symfony1.1から搭載されているsfFormで、「Aが選択されているときにはBとCは必須」ってのを実装してみた。

(more…)

PEARパッケージのインストールに耐えられないとかって

2008年3月20日(木曜日)
add to hatena hatena.comment 0 user add to del.icio.us 0 user add to livedoor.clip 0 user

仕事でSymfonyを使う事になったので、MAMP1.7.1にインストールしようとしたら入らない。

$ /Applications/MAMP/bin/php5/bin/pear install symfony/symfony
downloading symfony-1.0.11.tgz ...
Starting to download symfony-1.0.11.tgz (1,912,922 bytes)
.........................done: 1,912,922 bytes

で、止まる。
普通、

install:ok xxxxxxxx

とかなるのに。

MAMPのエラーログを見ると、

 PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 77824 bytes) in /Applications/MAMP/bin/php5/lib/php/PEAR/PackageFile/v2/Validator.php on line 179

とかいってんの。実にひ弱である。

php.ini確認すると、割り当て8M。MAMPに限らずだいたいこの値だったように思うけど、ちょっと足りないんじゃないの。
割り当て増やしたらインストールできた。

Windows+VMware+Linuxでシームレスな開発環境を作ってみた

2008年1月28日(月曜日)

Windows+VMware+Linuxでシームレスな開発環境を作ってみました。

  1. Windowsでコードを書く
  2. LinuxOS上で実行して確認

という作業をする時に、FTPやらSCPやらでいちいちファイルを移動しないで済みます。
(そんなこと誰もやってないって?)

(more…)

xampp for Linux にXdebugをインストール その1

2007年7月8日(日曜日)

LAMPP環境を簡単に構築できるXAMPP
さらに便利にするべく、ここにXdebugをインストールしたいと思い立つ。
やってみよう。

(more…)

phpizeで「warning: underquoted definition」というエラーが出たので対処した

2007年6月14日(木曜日)
add to hatena hatena.comment 1 users add to del.icio.us 0 user add to livedoor.clip 0 user

Webサーバにeacceleratorをインストールしようとしたらwarningが。
以下環境。

  • CentOS 4
  • automake 1.9.2-3
  • php 4.3.9
  • php-devel 4.3.9
[root@hoge ~]# wget http://downloads.sourceforge.net/eaccelerator/eaccelerator-0.9.5.zip		<- ダウンロード
[root@hoge ~]# unzip eaccelerator-0.9.5.zip	<- 展開
[root@hoge ~]# cd eaccelerator-0.9.5		<- 移動して
[root@hoge eaccelerator-0.9.5]# phpize		<- phpize
configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
  run info ‘(automake)Extending aclocal’
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR
configure.in:33: warning: underquoted definition of PHP_EXT_DIR
configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR
configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED
acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C

Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010

以下を参照しまして(感謝)
Do You PHP? - phpizeで「warning: underquoted definition」が多発する場合の対処法

以下ファイル修正。

[root@hoge ~]# vi /usr/lib/php/build/acinclude.m4 
AC_DEFUN(PHP_PROG_RE2C,[
AC_DEFUN([PHP_PROG_RE2C],[
[root@hoge ~]# vi /usr/lib/php/build/phpize.m4
AC_DEFUN(PHP_WITH_PHP_CONFIG,[ AC_DEFUN(PHP_EXT_BUILDDIR,[.])dnl AC_DEFUN(PHP_EXT_DIR,[”"])dnl AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir])dnl AC_DEFUN(PHP_ALWAYS_SHARED,[
AC_DEFUN([PHP_WITH_PHP_CONFIG],[ AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl AC_DEFUN([PHP_EXT_DIR],[”"])dnl AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl AC_DEFUN([PHP_ALWAYS_SHARED],[

以上でOK。

Category Tagging with Sort on PHP

2007年1月31日(水曜日)
add to hatena hatena.comment 2 users add to del.icio.us 0 user add to livedoor.clip 0 user

タグクラウドを導入しました。ついでにプラグインを修正して前のエントリに書いたかっこ悪い状況も直しました。

cloud.PNG

(more…)

WordPressは、DBでの文字化けを気にしておかないとカテゴリの順番がおかしくなる

2007年1月30日(火曜日)
add to hatena hatena.comment 0 user add to del.icio.us 0 user add to livedoor.clip 0 user

そう、このBlogみたいに。

(more…)

EUC-JPフォームで文字化け

2007年1月29日(月曜日)
add to hatena hatena.comment 0 user add to del.icio.us 0 user add to livedoor.clip 0 user

現在EUC-JPでサイトを作っているのですが、そこで文字化けに見舞われました。

フォームに「暴」「貼」などを入力してPOSTすると、コードで受け取った時点で化けてしまいます。
よくわからないまま解決したので、メモ。

(more…)