PHP5.5の新機能「ジェネレータ(Generator)」について、「それって何?」「どううれしいの?」「何に使えるの?」の3つを初心者向けに解説。動画 http://www.slideshare.net/kwatch/php55Read less
事前にいるもの ・Homebrew ・wget(Homebrewでbrew install wgetでいける) nginx、php-fpmインストール nginx brew install nginx php-fpm php-fpmを有効にしたphpをインストールする必要がある。 brewで入るが、デフォではbrew対象外(/usr/local/Library/Formula/にスクリプトなし)なのでスクリプト作る。 cd /usr/local/Library/Formula/ curl -O https://raw.github.com/ampt/homebrew/php/Library/Formula/php.rb mv php.rb `brew --prefix`/Library/Formulaインストール。fpm有効にするオプションを忘れずに。 brew install php -
PHP Extension Writing Marcus Börger Johannes Schlüter PHP Quebec 09: http://talks.somabo.de/200903b.pdf | .pps PHP Extension Writing 2 Börger, Schlüter þ Creating PHP 5 Extension þ PHP Lifecycle þ Adding objects þ Adding iterators to objects PHP Extension Writing 3 Börger, Schlüter Text in yellow Text you should use as presented Text in green Text that you have to replace yourext Extension name in
Chobi_e is the author of the upcoming PECL Sundown package and contributor to other PHP projects involving logging and messaging. He discusses options for collecting log files in PHP applications, including using log file collectors like Fluentd which provide a robust and distributed logging solution. Chobi_e also introduces some Fluentd plugins he has created and potential other plugin ideas, and
When you buy through affiliate links in our content, we may earn a commission at no extra cost to you. Learn how our funding model works. By using this website you agree to our terms and conditions and privacy policy. We uphold a strict editorial policy that focuses on factual accuracy, relevance, and impartiality. Our content, created by leading industry experts, is meticulously reviewed by a tea
Syntastic という文法チェック用のツールが凄そうというお話。 GitHub - vim-syntastic/syntastic: Syntax checking hacks for vim 自分の Vim は PHP の場合 errormarker.vim の PHP シンタックスチェックをし、Python の場合は PyFlakes*1 を使いチェックをしている。 Syntastic はそのようなチェックを統合的に扱えるプラグインのよう。 At the time of this writing, syntax checking plugins exist for applescript, c, coffee, cpp, css, cucumber, cuda, docbk, erlang, eruby, fortran, gentoo_metadata, go, haml, ha
PHPのJITコンパイラ「HipHop Virtual Machine」、Facebookがオープンソースで公開 HipHop Virtual Machineは、PHPを高速に実行するためにPHPのコードをC/C++に変換してg++でコンパイルし、バイナリコードにするHiphop compiler(hphpc)と、PHPのインタプリタであるHipHop interpreter (hphpi)を組み合わせたもの。PHPのコードをダイナミックにバイナリコードへと変換することで、高速な実行を目指しています。 コンパイラと同等以上の実行速度へ HipHopはFacebookが開発し、オープンソースとして公開しています。今回のHipHop Virtual Machineも、これらの開発の延長線上にあるものです。 Our experiences with hphpc led us to start e
はじめに この資料は「PHPでTDD&CIワークショップ」 http://atnd.org/events/16626 で @yamashiro が発表するための資料だよ。 ワークショップ参加者じゃなくても記事読むだけで完結するようには書いてあるよ。 概要としては、Jenkins を使って PHP のウンコレガシーなコードをいかに綺麗にして行くかということを説明する。 自画自賛だけど PHPMD とか PHPCPD の使い方の説明の資料としてもそこそこイケてる資料になってると思いました。まる。 この記事に書かれてることは、割とTemplate for Jenkins Jobs for PHP Projectsとかぶってるけど、プラグインを絞ってあるのと、一個一個のプラグインについて解説、また実際にエラーが起きたときにどうすればいいのか書くよ。 Java と Jenkins のインストールとJ
さる10/15,16両日、PHPMatsuri2011に参加してきました。 PHPMatsuri自体の感想は、「わったい菜のトマトムースうまかった」「SilexはSymfony2コンポーネントを使ったフレームワークのサンプル実装だった!」「Lithiumのユニットテスト統合っぷりがすげえ」「っていうか今時のフレームワークすげえ」「忍者LT大会わろた」「Epic sax guy 10 hours」「Epic sax guy 10 hours」といったところです。 2日目の午後からは意識朦朧で半分寝てましたので、正直発表内容はあまり覚えていません…ごめんなさい。なんかコタツの入切スイッチの話が妙に盛り上がってたのが印象に残ってます…。 ハッカソンではSilexを使った系図管理アプリケーションの開発に取り組んだのですが、その場ではLTできるレベルまで仕上げられませんでした。 そもそもなぜ系
本当にPHPについて知りたい人は、別のところに行くことをすすめる。moriyoshiさんのスライドや、Lerdorfオジサンのページなんかがオススメ。 PHPは歯ブラシである PHPの発案者であるRasmus Lerdorf氏はこう言っている。 PHPは歯ブラシくらい興奮に値する。シンプルで、毎日使う便利な道具。だからどうした。歯ブラシについて書物を漁るやつがいるか? PHP is about as exciting as your toothbrush. You use it every day, it does the job, it is a simple tool, so what? Who would want to read about toothbrushes? PHPが他の言語と決定的に違うのは、作者およびコミュニティが、言語に対して道具以上の感情を抱いてないことだ。PHP
$ ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)" $ brew install git $ brew update これでbrewコマンドが使えるようになったので、下のFormula(パッケージの情報みたいなもの)を使ってPHPやMySQLなどをインストールする。 (Re)installing PHP 5.3 on Mac OS X — justin hileman dot info bobthecow’s gist: 85ad6dfb594d9215b42b — Gist 最近のMacだとデフォルトPHPとか入ってるけど、何かアップデートとか面倒そうなのでbrewを使ってインストールし直してる。 <div> <pre id="codeSnippet" class="csharpco
About Ding The name "Ding" comes from the action of using/doing dependency injection (DI), the result is something like "di'ing". Also, Ding is based on (and tries to be designed as) the Spring framework from SpringSource, which offers a lot of great features not available to the php world. You now know where those great ideas came from ;) Ding also supports some of the JSR-250 and JSR-330 annotat
Phake is a framework for PHP that aims to provide mock objects, test doubles and method stubs. Phake was inspired by a lack of flexibility and ease of use in the current mocking frameworks combined with a recent experience with Mockito for Java. A key conceptual difference in mocking between Phake and most of php mocking frameworks (ie: mock functionality in PHPUnit, PHPMock, and mock functionalit
Webアプリケーションの脆弱性を見つける方法の1つにファジングがありますが、このツールはPHPのWebアプリケーションのファジングテストを自動的に行うためのツールです。ローカルのファイルに対して使うツールとなっていて、ソースコードの分析まで行うとのこと。 インタフェースはこれだけ、簡単に使えそう。果たしてその実力や如何に? 未検証なので、何かの機会で試してみたいところ。 PHP Vulnerability Hunter v.1.1.4.6 - Automated fuzz testing tool ~ The Hacker News | Hacking News | Learn Ethical Hacking Training
■ PECL::APC をさらに高速化するための設定 PECL の APC (Alternative PHP Cache) のチューニングに関する情報をいくつか見つけたのでメモ。 .::t3rmin4t0r::. : include_once: "Mostly Harmless" APC 3.0.12 以降の apc.include_once_override オプションについて、 その効果や仕組みが分かりやすく書かれていた。 php.ini あたりで、 apc.include_once_override=1 のように設定するとこのオプションが有効になり、 include_once() や require_once() が高速化される。 PHP Works 2007: apc@facebook APC 全般について非常に詳しく書かれている資料。 これによると、APC には数種類のロック方式
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く