#pragma section-numbers off [[TableOfContents]] = 概要 = Webアプリの作成言語としては簡易なためよく利用されている。 = 公式サイト = [http://www.php.net/downloads.php PHP: Downloads] = 関連サイト = = インストール = == Mac OS X == [http://developer.apple.com/internet/opensource/php.html PHP on Mac OS X] {{{ ./configure --with-zlib-dir=/usr/local --with-libjpeg=/sw --with-libtiff=/sw --with-libpng=/sw --with-gd --with-pgsql=/sw --with-mysql=/usr/local/mysql --with-xml --with-dom=/sw --with-apxs2 --enable-mbstring --with-tiff-dir=/sw --with-png-dir=/sw }}} Apache起動時{{{Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.}}]のエラーが発生した場合{{{--enable-roxen-zts}}}を付与してコンパイルする スレッドを無効にしたPHPを一回起動するとlibがキャッシュに確保されている場合があるので、キャッシュをクリアするかOSを再起動した方が無難。 == Cent OS == {{{ sudo yum install httpd-devel.i386 sudo yum install libc-client-devel.i386 sudo yum install mysql-devel.i386 sudo yum install unixODBC-devel.i386 sudo yum install postgresql-devel.i386 sudo yum install aspell-devel.i386 sudo yum install net-snmp-devel.i386 }}} {{{ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd=shared --enable-gd-native-ttf --without-gdbm --with-gettext --with-ncurses=shared --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-xml --with-expat-dir=/usr --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-xmlrpc=shared --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mbstring=shared --enable-mbstr-enc-trans --enable-mbregex --with-mime-magic=/usr/share/file/magic.mime --with-apxs2=/usr/sbin/apxs }}} = PEAR = {{{ pear upgrade PEAR }}} = 設定 = [http://y-kit.jp/saba/xp/phpsetup.htm 自宅サーバー(Windows+Apache)へのPHPインストール] バージョン情報隠蔽。バージョン隠蔽しても無意味ですけどね。 {{{ php.ini -- expose_php=Off display_errors=Off }}} = 最適化 = [http://phpspot.org/blog/archives/2006/11/12php.html 12のPHP最適化テクニック:phpspot開発日誌] = 利用方法 = = eclipse = [http://www.xored.com/trustudio xored software - TruStudio - PHP IDE and Python IDE built on Eclipse] [http://trustudio.japansite.org/ TruStudio Japan - PHP & Python 統合開発ツール on Eclipse] [http://www.phpeclipse.de/tiki-view_articles.php PHPEclipse.net] [http://www.koebi.net/koebinet.php koebi.net KoebiStudio Express Edition] = テンプレートエンジン = *["/Smarty"] *["/Flexy"] = フレームワーク = *[https://github.com/acoustep/slim-twig-eloquent acoustep/slim-twig-eloquent · GitHub] *[http://www.slimframework.com/ Slim Framework]:マイクロフレームワーク *[http://twig.sensiolabs.org/ Homepage - Twig - The flexible, fast, and secure PHP template engine]:テンプレートエンジン *[https://github.com/illuminate/database Eloquent]:ORM *["/CodeIgniter"] *["/Ethna"] * Mojavi * guesswork * HTML_QuickForm : いまいち * DB_DataObject [http://www.slideshare.net/k1LoW/cakephp-plugin-4364102 実"戦"CakePHP Plugin] [http://www.cakephp.jp/doc/index.html CakePHP プログラマーズ リファレンスガイド] [http://www.doyouphp.jp/php5/php5_phing2.shtml Do You PHP? - Phing2 - PHP版Ant for PHP5] [http://www.symfony-project.com/ symfony - open-source PHP5 web framework] [http://lnx.googlewrite.com/chart.php Framework Comparison Chart]フレームワーク比較 [http://d.hatena.ne.jp/koyhoge/20060327/1143444511 Blog::koyhoge - PHPフレームワークのリスト] [http://agavi.org/ Agavi PHP MVC Framework] [http://phpspot.org/blog/archives/2006/01/php_30.html PHPで、どのフレームワークが一番?:phpspot開発日誌] [http://d.hatena.ne.jp/ysano2005/20050828/1125222638 CMS researcher - PHPのフレームワークについて考える] [http://gigazine.net/index.php?/news/20060518_php100/ GIGAZINE - PHPのスキルを上げる100以上のプレゼンテーション資料] = 参考書籍 = [[ASIN(4797331305 PHP5徹底攻略 エキスパート編: 本)]] [[ASIN(4873112575 初めてのPHP5: 本)]] [[ASIN(4774122866 はじめてのPHP言語プログラミング入門: 本)]] [[ASIN(4798108766 極める ! PHP: 本)]] [[ASIN(4798111058 超・極める! PHP: 本)]] = 参考サイト = ---- CategoryProgramLanguage