- Reference
kenbo.net - 天気予報RSS取得PHPスクリプト
http://kenbo.net/tenki/tenki_rss.html
- Summary
php_value ディレクティブを利用する
- Summary
PHP から XML/SWF Charts[2005-03-10-6] を呼び出す.
XML/SWF Charts のバージョンに伴い,
<param> タグに name=FlashVars が追加.
呼び出し方が多少変更に.
ライセンスコードはFlashVarsのVALUEに追加する.
- PHP Source
<?php $width = "400"; $height = "250"; $swf = "charts/charts.swf"; $xml = "xml/hoge.xml"; $lib = "charts/charts_library"; ?> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 " width="<?= $width ?>" height="<?= $height ?>" id="charts" align="" > <param name=movie value="<?= $swf?>"> <param name=FlashVars VALUE="library_path=<?= $lib ?>&xml_source=<?= $xml ?>"> <param name=quality value="high"> <param name=bgcolor value="#999999"> <embed src="<?= $swf ?>" FlashVars="library_path=<?= $lib ?>&xml_source=<?= $xml ?>" quality=high bgcolor=#999999 width="<?= $width ?>" height="<?= $height ?>" name="charts" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" > </embed> </object>
font='Sans Serif'
で日本語利用可能
- Reference
http://kamakura.cool.ne.jp/oppama/oswa/phpldap.html
http://php.s3.to/man/function.ldap-search.html
http://www.linux.or.jp/JF/JFdocs/LDAP-HOWTO-6.html#ss6.4
http://www.zend.co.jp/products/studio/ZendInformationCenter/php_manual/php_function_refrence/ref.ldap.html
http://www.ku3g.org/negi/diary/?200209b#200209120
http://ukai.jp/Articles/2002/uu-ldap/account-local.html
- Summary
PHP用のカバレッジツール.
テスト時に通過しなかった行を可視化することで,デバッグ支援が可能.


- Reference
Spike PHP Coverage
http://www.spikesource.com/projects/phpcoverage/
- via
Open Alexandria - 2005-07-21 - PHPCoverage
http://www.openalexandria.com/item_657.html
- Reference
There and Back Again - Projects - HTML_AJAX
http://bluga.net/projects/HTML_AJAX-0.2.0/
There and Back Again - 2005-07-15 - HTML_AJAX
http://blog.joshuaeichorn.com/archives/2005/07/15/html_ajax/
- via
X*ole.net - 2005-07-17 - HTML_AJAX
http://blog.xole.net/article.php?id=272
cl.pocari.org - 2005-07-19 - HTML_AJAX
http://cl.pocari.org/2005-07-17-1.html
- Summary
PHP の XML_Serializer は
Perl の XML::Simple みたいなモノ.
- Reference
XML_Serializer
XML::Simple
本: Perlクックブック〈VOLUME2〉 pp.1083--1085
- via
cl.pocari.org - 2005-07-19 - xml 文章を配列やオブジェクトにしてくれる PEAR::XML_Serializer
http://cl.pocari.org/2005-07-19-1.html
- Reference
JpGraph - PHP Graph Creating Library[2004-05-10-9]
http://www.aditus.nu/jpgraph/
PHPLOT
http://www.phplot.com/
Welcome to PHPlot - PHPlot 5.0 へようこそ (邦訳)
http://tec-tech.org/phplot5/doc/index-j.php
SourceForge - PHPLOT
http://sourceforge.net/projects/phplot/
- Sample
mb_language('Japanese'); mb_convert_variables('JIS',$local_encoding,$title,$contents); mb_send_mail($to,$title,$contents);
- Summary
mysql_connect() で UNIX Socket でも接続できる
mysql_connect('localhost:/tmp/mysql.sock', 'userid', 'password');
- Summary
SELECT * FROM table_name;
<root> <result> <row> <id>1</id> <name>hoge</name> <sexual>male</sexual> </row> <row> <id>2</id> <name>foo</name> <sexual>famale</sexual> </row> <row> <id>3</id> <name>bar</name> <sexual>secret</sexual> </row> </result> </root>
- Summary
gettype() や empty() などの 真偽値表と
== , === による比較の真偽値表
カーソルを合わせると行と列がハイライトされる.
- Reference
BlueShoes - PHP Cheat Sheet
http://www.blueshoes.org/en/developer/php_cheat_sheet/
- via
cl.pocari.org - 2005-04-13
http://cl.pocari.org/2005-04-13.html#2005-04-13-2
PECL is a repository for PHP Extensions, providing a directory of all known extensions
and hosting facilities for downloading and development of PHP extensions.
- Reference
PECL - The PHP Extension Community Library
http://pecl.php.net/
- 一覧
| 偽になるもの | 例 |
| boolean の false | false |
| integer の 0 | 0 |
| float の 0 | 0.0 |
| 空の文字列 | "" '' |
| 文字列の0 | "0" '0' |
| ゼロを要素とする配列 | |
| ゼロを要素とするオブジェクト | |
| 特別な値 NULL (値がセットされていない変数) |
- PHP 関数検索へのリンクプラグイン
### PHP 関数検索へのリンクプラグイン # usage: {{php('関数名')}} sub php { my ($str) = @_; my $prefix = q(http://www.php.net/search.php); my $lang = q(ja); # quickref : function list # wholesite : whole site # manual : online documentation [en] # bugdb : bug database # maillist : general mailing list # devlist : developer mailing list # phpdoc : documentation mailing list my $show = q(quickref); return qq(<a href="$prefix?lang=$lang&show=$show&pattern=$str" title="PHP Manual - $str">PHP Manual - $str</a>); }
- 使用法
1. PHP Manual をダウンロード
2. vim/doc ディレクトリに設置
3. vim を起動して
:helptags .vim/doc
4. .vimrc の編集
以下を追加
if has("autocmd")
autocmd BufNewFile,Bufread *.php,*.php3,*.php4 set keywordprg="help"
endif
5. 関数名の上で K を入力することでヘルプを閲覧可能.
- Reference
Planet XML - PHP Manual in VIM
http://planetxml.de/vim-php-manual.php
- via
cl.pocari.org - 2004-12-06
http://cl.pocari.org/2004-12.php#2004-12-06-2
- Reference
Tulpes PHP4 Debug Helper (debuglib.php)
http://www.atomar.de/public/code/debuglib/debuglib.demo.php
[PHP-users 23795] php のデバッグ
http://ns1.php.gr.jp/pipermail/php-users/2004-December/024315.html
- via
cl.pocari.org - 2004-12-03
http://cl.pocari.org/2004-12.php#2004-12-03-4
- Summary
10進,16進のHTMLエンティティを生成できる.
- Perl モジュール
HTML::Entities は日本語が使えない.
HTML::Entities::Numbered というモジュールもあるのか.
- PHP
mb_encode_numericentity - 文字をHTML数値エンティティにエンコードする
mb_decode_numericentity - HTML数値エンティティを文字にデコードする
- 追記
FreeMind が日本語文字列を「16進のHTMLエンティティ」で出力するので困る.
- Reference
HTMLエンティティ化
http://hp.vector.co.jp/authors/VA022023/javascript/make_html_entity-ja.htm
HTMLエンティティ生成
http://gadd9.com/soft/entity.html
HTML::Entities
HTML::Entities::Numbered
PHP Manual - mb_decode_numericentity
PHP Manual - mb_encode_numericentity
- via
blog.bulknews.net - 2004-08-12
http://blog.bulknews.net/mt/archives/001184.html
- Summary
ChangeLogメモを読み込んでXMLを書き出してから色々やるみたい.
- Reference
Nobu's ChangeLog - CHANGELOG
http://satou.myhome.cx/~nobu/clog/cat_changelog.html
Nobu's ChangeLog - 2004-11-03
http://satou.myhome.cx/~nobu/clog/2004-11-03.html#2004-11-03-6
Nobu's ChangeLog - 2004-11-04
http://satou.myhome.cx/~nobu/clog/2004-11-04.html#2004-11-04-5