.void
via The Pimp Windowsだけだが、COMで取ったウィンドウハンドルからウィンドウの画像をキャプチャする機能をPHPのGD拡張に追加した、という話が。 Screen capture with PHP and GD “here”で配られているビルド済みの php_gd2.dll を、PHP5.2にもともとついてる php_gd2.dll に差し替え、リンク先の記事にあるサンプルを呼んでみると、Windowのキャプチャも全画面のスクリーンショットも取れて、pngファイルになった。 ということは、SimpleAPIみたいなサムネイル生成サービス を簡単に作れるようになった、ということだな。 Windowsのスクリーンショットなんて下の2行で取れるので、 $im = imagegrabscreen(); imagepng($im, "myscreenshot.png"); PHPで各
One of the most common things web coders run into is the need to parse some type of XML file. Many web services return API calls in XML format, so it's just handy to know how to parse these results quickly. With PHP4 you usually have to rely on some large parsing library to get the job done or deal with overly complicated PHP functions, but PHP 5 has a great extension called SimpleXML. When I say
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く