Plack上でPHP(php-cgi)を動かすモジュール、Plack::App::PHPCGIと任意のCGIも動かせるPlack::App::CGIBinを使ってApacheナシでNagiosをインストールする方法 まず、php-cgiをインストールする。CentOSの場合、php(53)?-cliというパッケージがあるのでそれを使い... 続きを読む
すぐれた PHP のライブラリとリソース Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。 Composer Composer/Packagist - パッケージと依存マネージャー Compo... 続きを読む
前回、OrePHPはシンプルで速いクールなフレームワーク - ぷぎがぽぎという内容の記事を書きましたが、これぐらいの速度で満足してはいけないということで更に高速化を考えました。 Cのエクステンションで書かれた超高速PHPフレームワーク PhalconPhalconという... 続きを読む
PhalconPHP is a web framework delivered as a C extension providing high performance and lower resource consumptionPhalconPHP is a web framework delivered as a C extension providing high performance and lower resource consumption 続きを読む
3月27日に開催された第66回PHP勉強会でLT発表してきました。以下が発表資料です。 発表内容は、 PHP-FPMとuWSGI+PHP pluginを試してみた話と、PHP-FPMの面白機能紹介といった内容です。 個人的にPHP-FPMの記事は絶賛記事が多すぎて気持ち悪いと感じていたので、... 続きを読む
Idiorm is an object-relational mapper and fluent query builder. If you prefer to think about tables and joins, you should probably be using Idiorm. $user = ORM::for_table('user') ->where_equal('username', 'j4mie') ->find_one(); $user->first_n... 続きを読む
2013-03-20 PHP vld を使ってみた PHP 今月に入ってから 1 回もブログを書いていなかったのでわりとどうでもいい小ネタを。 はじめに PHP vld を使うと opcode が簡単に表示できて便利です。 PECL :: Package :: vld PHP vld インストール - yoyaのメモ インス... 続きを読む
開発者のためのホスティングサービス【Sqale(スケール)】の最新情報をお伝えします。いつもSqale(スケール)をご利用いただきありがとうございます。 本日より、PHPのアプリケーションが作成できるようになりました! Sqaleでは、PHP 5.4 / 5.3 がご利用いた... 続きを読む
A partial PHP implementation in PHP This is a basic VM implemented in PHP using the AST generating parser developed by @nikic To see what's supported so far, check out the opcodes. Right now, functions (definitions and calls) are supported, i... 続きを読む
PHPに正規表現リテラルをどんな感じで実装するかを3/2の第四回闇PHP勉強会で話しました。PHPはよく使われるJavaScriptやRubyやPythonが持っているような正規表現リテラルが無いのですが、この話では実際にパッチを書いてみてどんな感じで正規表現リテラルを追加... 続きを読む
xFrameworkPXは株式会社ゼノフィの提供するPHP5 WebアプリケーションMVCフレームワークです。PHP5による高速開発かつ汎用性の高い当社フレームワークのリリース情報、技術情報等を提供します。内部コントローラーを実装しているため、ユーザーが画面を作成する... 続きを読む
Facebook が開発したPHPを超高速で実行する仮想マシン HipHop VM で WordPress が動く!ってことで AWS で試してみました。 詳細は、以下で Getting WordPress running on HHVM | HipHop for PHP Facebookが開発したPHPを超高速で実行する仮想マシン HipHop VM ... 続きを読む
The Puzzle library The Puzzle library is designed to quickly find visually similar images (gif, png, jpg), even if they have been resized, recompressed, recolored or slightly modified. The library is free, lightweight yet very fast, configura... 続きを読む
phpなんか、CD-ROMをイジェクトさせるスクリプトが流行ってる(?)らしい。 CD-ROM トレイを取り出せるIE用ブックマークレット、「ie-eject.vbs」作った。 - 葉っぱ日記Big Sky :: CD-ROM トレイを取り出せる vim プラグイン、「eject.vim」作った。ということで... 続きを読む
PHP, Ruby僕はRubyが好きだ。プライベートではRubyばっかり使っている。でも、仕事ではPHPを使わなければならない。これまでPHPは書きにくいーと思い込んでいてあまり好きではなかったのだけど、仕事で使う以上PHPを好きになった方がきっと幸せになれる。何かを... 続きを読む
Tuesday, January 8, 2013 MongoDB PHP Tutorial { 13 comments } Now time to work with MongoDB NoSQL database management systems, it stores data into structured JSON like documents with dynamic schemas and improves application performance. This ... 続きを読む
Lua for PHP extension Lua extension embeds the lua interpreter and offers an OO-API to lua variables and functions. Download PECL: lua APIS $lua = new Lua($lua_script_file = NULL); $lua->eval("lua_statements"); //eval lua codes $lua->include(... 続きを読む
"Lua is a powerful, fast, light-weight, embeddable scripting language." This extension embeds the lua interpreter and offers an OO-API to lua variables and functions. 続きを読む
README.md MyMR master: develop: MapReduce framework using PHP and MySQL. Currently this application is under heavy development. Some interfaces may change. Features Class based MapReduce definition. <?php /** * Class based word-count example ... 続きを読む
PHP | 08:41 | パーフェクトPHP (PERFECT SERIES 3)作者: 小川雄大,柄沢聡太郎,橋口誠出版社/メーカー: 技術評論社発売日: 2010/11/12メディア: 大型本購入: 26人 クリック: 955回この商品を含むブログ (45件) を見る Intro会社に入社して5年が経ち、4月から新... 続きを読む
こんにちは。ライフスタイル事業部のアリタと申します。 Yahoo!のサービスも裏側ではWebAPIが多用されています。1つのページを構成するのに5、6個のAPIを使うこともざらですが、それではさすがにパフォーマンスが問題となってきます。その原因と対策例を紹介し... 続きを読む
PSR0, PSR1, PSR2にしたがってPHPのソースコードをフォーマットしてくれるphp-cs-fixerを使う。(全部のルールに対応してるわけじゃない) % sudo curl http://cs.sensiolabs.org/get/php-cs-fixer.phar -o /usr/local/bin/php-cs-fixer % sudo chmod a+x /usr/... 続きを読む
Improved PHP error reporting, for easier debugging, and nicer web development.PHP Error, error reporting done right! Better error messages, full syntax highlighting, code snippets, and works for ajax too 続きを読む
9月15日に開催されたPHPカンファレンス2012でLT発表してきました。以下が発表資料です。 発表資料:「php-timecopを実戦投入してみた」(slideshare版)(PDF版) ただ、利用シーンがイマイチわからないという声を何件か頂戴しましたので、本稿で改めて補足します。... 続きを読む
0 views PHP5.5の新機能「ジェネレータ(Generator)」について、「それって何?」「どううれしいの?」「何に使えるの?」の3つを初心者向けに解説。 More… PHP5.5の新機能「ジェネレータ(Generator)」について、「それって何?」「どううれしいの?」「何に使... 続きを読む
1 RT
RT @uzulla phpcon 2012 この発表は勉強になった、はやくこいこい5.5
An Object Oriented Hosting Framework Box File Git Repo Web Caching Database Workers Writable Directories Cron Jobs SSL Instant flexibility for any PHP / LAMP application Painlessly add, scale and adjust individual components Click the icons a... 続きを読む
2012年5月7日月曜日 CGI版PHPにリモートからスクリプト実行を許す脆弱性(CVE-2012-1823) CGI環境でPHPを動作させているサイトには、リモートからスクリプト実行を許してしまう脆弱性があります。php.netから提供されている修正リリース(PHP 5.3.12 / PHP 5.4.2)... 続きを読む
Accessibility View text version Categories Technology Upload Details Uploaded via SlideShare as Adobe PDF Usage Rights © All Rights Reserved Statistics Favorites 1 Downloads 1 Comments 0 Embed Views 0 Views on SlideShare 231 Total Views 231 P... 続きを読む
「PHP on クラウド! – AWS Elastic Beanstalkの真価 –」 57 視聴数 長さ: 36:38 セッションA-2 「PHP on クラウド! – AWS Elastic Beanstalkの真価 –」 片山 暁雄(AWSソリューションアーキテクト) Recorded on 12/05/12 埋め込みコード:録画 <iframe src... 続きを読む
某MLに投稿したので、こっちにも書いておく。 spl_autoload_registerを使えば、__autoloadと同じ機能をもったfunction/static methodを登録することができる。 つまり、__autoloadが1つのphpに対して1のみしか存在し得なかった呪縛から開放される。 <?php // 通... 続きを読む
The iPad finally allows you to write and run PHP code directly on the iPad. Kodiak PHP is the only app that includes a native PHP interpreter.Useful links @becomekodiak Kodiak on Facebook Behind the scenes Contact Media kit (press kit) Pricin... 続きを読む
こちらは参加登録用のイベントです。 カンファレンスの詳細な内容についてはPHPカンファレンス2012公式サイトを御覧ください。 同日・同会場で開催されるWordCamp Tokyoについてはこちらをご覧ください。 セッションの混雑状況予測の為に別途、セッション参加希... 続きを読む
This library reads PHP code and transforms it into JavaScript code which can be run in the PHP VM in this library, resulting in same results as with PHP. It starts by tokenizing the PHP code into tokens, which it then uses to build an AST tre... 続きを読む
An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the WebPHP The Right Way. Tweet ようこそ 時代遅れの情報がウェブ上にあふれている。そんな情報を見たPHP初心者は戸... 続きを読む
An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the WebPHP (The Right Way) Introduction Code Style Guide Namespaces Input Filtering Databases and PDO Password... 続きを読む
1 RT
Welcome to www.php-fig.org. This is just some placeholder content until the domain is in place, we'll get real meat of the project added as we go. Here is a little quickstart to hack on _this_ website. Edit as needed for your dev style $ mkdi... 続きを読む
写メール BBS ■ 概要 ・メール投稿型掲示板です。 ・J-PHONE写メール、DoCoMo i-shot、auフォトメール、PC添付画像等に対応しています。 ・着メロもOKです。つーか添付メールならなんでもいけます。 ・専用のメールアドレスに送信されたら、受信スクリプトが手... 続きを読む
README.md React Event-driven, non-blocking I/O with PHP. Install The recommended way to install react is through composer. Design goals Usable with a bare minimum of PHP extensions, add more extensions to get better performance. Provide a sta... 続きを読む
The PHP package archivist. Packagist is the main Composer repository. It aggregates all sorts of PHP packages that are installable with Composer. Browse packages below or submit your own (learn how). Packages monolog/monolog Logging for PHP 5... 続きを読む
Dependency Management for PHP 続きを読む
Opauth enables PHP applications to do user authentication with ease. Demo How to use What is Opauth? Inspired by OmniAuth for Ruby, Opauth provides a standardized method for PHP applications to interface with authentication providers. Opauth ... 続きを読む
Coding Style Guide This guide extends and expands on PSR-1, the basic coding standard. The intent of this guide is to reduce cognitive friction when scanning code from different authors. It does so by enumerating a shared set of rules and exp... 続きを読む
ちょっと大げさなタイトルですが、あくまで私個人の環境構築手順をまとめたものです。WindowsからMacに乗り換えたばかりで、どうやってPHPの開発環境を整えるか分からないPHPerに向けの「開発環境を整えるためのガイド」と考えてください。 既にMacでAMP環境を... 続きを読む
2012年4月5日木曜日 PHPの組み込み関数で例外を発生させる方法 このエントリではPHPの組み込み関数でエラー時に例外を発生させる方法を紹介します。デフォルト状態では、PHPの組み込み関数の大半はエラー時に例外を発生させません。 前のエントリで、PHPのheade... 続きを読む
In this tutorial, I’ll demonstrate how to create vintage (just like Instagram does) photos with PHP and ImageMagick. Wait? What? Yes, you can do this very thing with PHP and ImageMagick, and that’s just scratching the surface! We Made Digit... 続きを読む
クラウド上でPHP 5.3の環境が用意され、負荷に応じてインフラがスケーラブルに対応してくれる。Amazonクラウドが提供するPaaS機能である「Elastic Beanstalk」に、このようなPHP対応機能が追加されました。 Amazon Web Services Blog: AWS Elastic Beanstalk - ... 続きを読む
どんなにすぐれたプログラマも、間違いを犯します。 よいプログラマとそうでないプログラマの違いは、 よいプログラマはテストを行って間違いをできるだけ早く発見してしまうことです。 テストをするのが早ければ早いほど間違いを発見しやすくなり、 またそれを... 続きを読む
PHPUnit でテスト駆動開発を始めよう — Presentation Transcript PHPUnit でテスト駆動開発を 始めよう @yuya_takeyama このスライドは以前の発表を抜粋・再編集・加筆してお送りします アジェンダ•PHPUnit とは何か•何故ユニットテストを書くか•免責事項 (... 続きを読む
PHP :: Bug #61095 :: PHP can’t add hex numbersvia はじめてのにき(2012-02-25) $ php -r 'echo (0x00+2);echo "\n";' 4 $ php -r 'echo (0x00+ 2);echo "\n";' 2 $ php -r 'echo (0x00 + 2);echo "\n";' 2 $ php -r 'echo (0x00 +2);echo "\n";' 4 $ php -v... 続きを読む