2010-03-16(火)

12:29 おそらくはそれさえも平凡な日々: PHPの正規表現と文字列 »はてなブックマーク - タグ「php」を含む注目エントリー
PHPで正規表現を扱う上で、正規表現パターンの記述で迷ってしまっている人が多い気がする。PHPが文字列を生成するその文字列を正規表現エンジンに渡すと言う2段階の手順があり、そこがやや複雑なので混乱を招く部分があるのだと思う。混乱を防ぐためには、その手順をしっかり追って、正規表現リテラルとして指定している文字列をechoしたらPHPがどのように出力するかを考えてみると良い。例えば以下のようなコードが...
10:03 mysqlを使ったBBSでの書き込み時間の取得 »Q&A掲示板
mysqlを利用して掲示板を作っています。 書き込み時の時間を取得して掲載するために”current_timestamp”を使ってみたのですが、 海外のサーバーのため17時間の時差が出てしまいます。 下記のようなコードなのですが、どうすれば改善できるでしょうか? --------------------------------- $sql = "UPDATE database SET  user_name = '{$_POST['user_name']}', email = '{$_POST['email']}', time = current_timestamp "; --------------------------------- カラム【 time 】の種別は"DATETIME"にしています。 アドバイスいただけますと幸いです。
06:55 Performance improvements in Drupal with WINCACHE user cache - Venkat Raman Don »Planet PHP

Now that WINCACHE 1.1 Beta is released and it has support for user cache, you can enhance Drupal’s performance by integrating WINCACHE user cache. For this you will need to have two things already setup:

Once you have above setup ready, integrating WINCACHE user cache is really easy. I will assume that you have copied CacheRouter extension in the ‘modules’ folder of Drupal installation. This means you should have added below lines in your file named settings.php inside folder sites\default:

$conf['cache_inc'] = './modules/cacherouter/cacherouter.inc';
 
$conf['cacherouter'] = array(
 
  'default' => array(
 
    'engine' => 'wincache',
 
    'servers' => array(),
 
    'shared' => TRUE,
 
    'prefix' => '',
 
    'path' => 'sites/default/files/filecache',
 
    'static' => FALSE,
 
    'fast_cache' => TRUE,
 
  ),
 
);
type="text/css"> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }

Now let’s move to next step. Please save the file named wincache.php_.txt from link http://drupal.org/node/743028 as wincache.php file to folder modules\cacherouter\engines.

type="text/css"> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }

Restart your server and you are done.

In order to verify that WINCACAHE is storing values in user cache, hit the homepage of your Drupal installation. Now open WINCACHE.PHP file which ships with the installation and click on tab named “User and Session Cache”. It should look something like below:

image

As of writing this blog, a bug in CacheRouter (daily builds) prevents any caching functionality to work. The bug has been logged at http://drupal.org/node/743238.

In order to make it work with older versions of CacheRouter build like 7.x-1.0-beta1, 6.x-1.0-rc1 or 5.x-1.0-beta9 the attache

Truncated by Planet PHP, read more at the original (another 1033 bytes)

06:34 Post-ConFoo - Sean Coates »Planet PHP

Today I am back in the (home) office after speaking at ConFoo last week.

I gave two talks:

Despite some timing issues (as is always the case for me with new talks), I think both sessions went well. I got some good, constructive feedback from attendees on how the talks could be made better, and if I get the opportunity to give them again, I'll definitely take it into consideration.

Because PSAV (not the conference organizers' fault, other than trusting PSAV—a lesson all conference organizers eventually learn) was its normal bucket of fale, conference Internets weren't exactly usable. I was lucky enough to be in my home country (for a change), so I was able to tether on 3G for most of the week, and that kept me and a few others online. However, I think that most attendees didn't have the same opportunity, so if you attended one of my talks, I'd greatly appreciate it if you could head over to joind.in and post a comment or two about what you thought (talk-specific links above).

After the conference ended, Andrei stayed at my place.

On Saturday, we brewed a second annual batch of Белый, which—if all goes well—will end up at 11.5%ABV. Maybe it will be ready for next year's ConFoo. (-:

We decided to take it easy on Sunday… sort of. We spent most of the afternoon planning out a PHP extension we'd been talking about for several months: a highly-customizable and user-hookable PHP preprocessor. Afternoon turned to evening, turned to night, and by the time we turned in, we had a working—but not yet ready for release—extension. More details to come, but here's a teaser.

05:13 Function . name C, PHP, Python, Ruby, Assembler, C# and others »del.icio.us/popular/php
05:13 PHPit - 7 coisas simples em PHP que alguns ainda complicam - PHP »del.icio.us/popular/php
05:12 WordPressプラグインを使わずに記事ごとにcssを加えられるようにするカスタマイズ - かちびと.net »はてなブックマーク - タグ「php」を含む注目エントリー
記事単体に別のcssを加えられる ようにする為のメモ。プラグインは 使いたくないよ、という方向けの カスタマイズ方法になります。 functions.phpで投稿画面にcss の追加用boxを作成します。 記事ごとにスタイルを追加出来るように、投稿画面にcss追加用のboxを加える為のカスタマイズ。add-css-jsなら簡単ですが、カスタムフィールドが個人的に面倒だったのでfunctions.p...
05:10 [CakePHP] Qdmail でメールの一斉送信 »はてなブックマーク - タグ「cakephp」を含む注目エントリー
CakePHP のコンポーネントの Qdmail はメールを送るのに非常に便利なコンポーネントです。この Qdmail を使用してメールを一斉送信する方法です。 本家の方に複数の宛先宛に個別にメールを送る方法が紹介されています。 個別アドレス分離機能(一斉送信時) – Qdmail – PHP::Mail Library , Quick and Detailed for Multibyte上記ペー...
04:51 PHPBuilder.com: Customize Your WordPress Blog with PHP Plugins and Widgets »PHPDeveloper.org

On PHPBuilder.com today there's a new tutorial walking you through the creation of a simple WordPress plugin that shows the latest YouTube video from your blog's channel.

Think of plugins as components where you put your functionality and widgets as components of your user interface. Building your own WordPress plugins and widgets will make your blog truly original, and all you need is basic PHP and HTML knowledge - and your imagination.

They help you get started with defining a few constants, registering the actions with WordPress, building the widget (with complete cut-and-paste-able code) and including it in your WordPress blog. You can download the complete source if you want to get started quickly.

03:26 PHP parse errors with cgi and nginx - till »Planet PHP

So for whatever reason, it took me a while to figure this out earlier today:

2010/03/15 15:44:16 [info] 22274#0: *148224 client closed prematurely connection, so upstream connection is closed too while sending request to upstream, client: a.a.a.a, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/.fastcgi.till/socket:", host: "localhost"
2010/03/15 15:44:16 [info] 22274#0: *148207 client closed prematurely connection, so upstream connection is closed too while sending request to upstream, client: a.a.a.a, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/.fastcgi.till/socket:", host: "localhost"

The issue was a PHP parse error which I overlooked when I added a new file. The weird thing is, I had nothing in the logs (E_ALL, display_errors is off, but all logs are enabled and I tailed them using multitail) and nginx only displayed a blank page. The errors above were in nginx's own log file.

03:03 Juozas Kaziukenas' Blog: Zend Framework is NOT bloated »PHPDeveloper.org

In response to one of the constant claims about the Zend Framwork - that it's large and bloated - Juozas Kaziukenas tries to dispel three things that people use to reinforce this belief.

Zend Framework is always considered as being the slow/bloated one. I don't think this is right, so I decided to prove that it's not correct and in fact ZF is as good as other frameworks are. This post doesn't cover any benchmarks though; this is more like a architecture review and some misconceptions disproof.

He counters the following with a bit of logic that makes the points a bit more shaky than they first seem:

  • Large installation footprint
  • Unnecessary features
  • Use more system resources

If you're still not convinced, he offers two other tips to help streamline your Zend Framework install - profiling to find the bottlenecks and using Zend_Application sparingly as it can be a bit of a resource problem.

02:12 EllisLabs Blog: EllisLab moves to Mercurial, Assembla, BitBucket; CodeIgniter 2.0 Baking »PHPDeveloper.org

On the EllisLabs site there's a recent post talking about some of the big changes that've happened to their development process surrounding CodeIgniter and its future version.

EllisLab today announces changes to our internal development processes, including dropping Subversion in favor of Mercurial and adopting Assembla as our agile software development management tool. Along with these changes, CodeIgniter 2.0 pre-release code is in development, and is now hosted at the Mercurial-focused social coding site BitBucket.

They also talk about their move to the Scrum method of software development and how this (and their change of version control system) can help the future of CodeIgniter (version 2.0) come even sonoer through contributed updates and bugfixes made much simpler through the features of BitBucket (similar to Github). If you'd like to contribute, you can follow the CodeIgniter project and get busy contributing back to this great framework.

01:33 ZendCasts.com: Writing Composite Zend_Form Elements »PHPDeveloper.org

A recent tutorial (screencast) has been posted to the ZendCasts.com site looking at creating custom Zend_Form elements when you need something more than just the usual, simple elements.

This video should help you build your own composite Zend_Form element. We'll be building a phone element. The phone element will have 3 textboxes, one for geographic location, area code and local code. In the following videos will add a custom cell phone validator and some ajax validation.

You can grab a copy of the source if you'd like to follow along or you can just look around the repository to find the source for this and other great lessons from the site.

00:30 HTML+JavaScriptでiPhone/iPad/Androidネイティブアプリを開発できる「Titanium 1.0」 | パソコン | マイコミジャーナル »はてなブックマーク - タグ「php」を含む注目エントリー
米カリフォルニア州マウンテンビューに拠点を構えるAppceleratorは、同社開発プラットフォームの「Titanium 1.0」をリリースしたと発表した。Titaniumはクロスプラットフォーム環境で、HTMLやJavaScriptなどのWeb標準記述言語を使ってスマートフォンやPC向けのネイティブアプリケーション開発が可能。Windows、Mac OS X、Linux向けのアプリケーションのほ...
00:15 Jaws 0.8.11 repacked »Jaws
We've uploaded the tarball again, changes are.
  • Fixed upgrade of Blog gadget
  • Update Swedish translation
There's no need to update again.
for more info please see http://dev.jaws-project.com/changeset/11121
00:04 Solar Blog: Solar 1.0.0 Stable Released »PHPDeveloper.org

As mentioned on Solar blog and a few other places on the web, the stable 1.0.0 version of the Solar PHP framework has been released, marking a significant milestone in the framework's development.

Yesterday, I announced the release of the 1.0.0 stable version of the Solar Framework for PHP on our mailing list. (I tagged the release four days ago on Monday, but wanted to time the announcement to go along with my Solar presentation at ConFoo.)

The Changelog for the release can be found here and some of the latest updates include improved CSRF features, named actions and optimized queries.

This stable release is the culmination of about five years of development effort, with important contributions from several others in the PHP community. My many thanks to everyone who helped make this release, and all the previous releases, better than I could have made it on my own.

2010-03-15(月)

23:12 Ibuildings techPortal: 8 Reasons Every PHP Developer Should Love Javascript »PHPDeveloper.org

On the Ibuildings techPortal they're posted the latest podcast in their Dutch PHP Conference 2009 sessions series - Boy Baukema's talk on why every PHP developer should love Javascript.

In this talk these and more comparisons will be drawn between the two languages. The main weaknesses and strengths of JavaScript will be discussed and compared to PHP. Examples will be given of closures and lambda functions in JavaScript and they will be compared to the implementation of these same features in the upcoming PHP 5.3. And through comparison the speaker will demonstrate that the two languages are quite similar.

To listen you can either use the in-page player or you can download the mp3 directly and listen offline at your leisure.

22:48 Zend Developer Zone: Webinar - New in Zend Framework 1.10! »PHPDeveloper.org

If you've been looking for a good way to get introduced to the latest version of the Zend Framework but didn't know where to start, you might grab a spot in this upcoming webinar from Zend about the Zend Framework 1.10.

Zend Framework 1.10 sports a ton of new features, as well as completely revamped online documentation. In this webinar, Matthew Weier O'Phinney, Framework Project Lead, and Ralph Schindler, Zend Framework Software Engineer, will present a synopsis of the new features, discuss the new online documentation system and how it's built, and answer your questions about the new release.

The webinar will be happening this coming Wednesday, March 17th, at 9am PST and will be happening via WebEx. Matthew Weier O'Phinney and Ralph Schindler will be talk about the new features, current functionality that was enhanced and will answer your burning questions. To reserve your spot, head over to the registration page and enter your info.

21:28 Available for PHP Extension Writing - Derick Rethans »Planet PHP

Available for PHP Extension Writing

Slightly more than a month ago I left my job as team-lead of eZ Components at eZ Systems behind, to focus on something new. During the past month I've been contemplating about what to do next and realized that I do not want to take on a new full-time position right away. Instead I will be available to work on (custom) PHP extensions and internals related issues. Extensions are a great way around PHP's limitations and performance issues.

As first project I am working on a "QuickHash" extension for StumbleUpon. This extension circumvents PHP's hefty memory (and performance) overhead by providing more specific data structures. The extension currently implements integer sets and integer to integer hashes. I am now adding integer to string hashes and string to integer hashes. The QuickHash extension will be released under the PHP Licence and I will dedicate another post to it later.

If, like StumbleUpon, you are also interested in having work done on PHP or a specific extensions feel free to contact me. I'd be happy to discuss things with you.

20:30 How to Create Super Fast Retweet, Delicious and Facebook Share Widgets »del.icio.us/popular/php
20:30 PHPによってCSSを動的に出力する初心者向けチュートリアル:phpspot開発日誌 »del.icio.us/popular/php
20:30 Web制作に役立つ総合情報サイト 7コ+α »はてなブックマーク - タグ「php」を含む注目エントリー
1:coliss(1)「coliss」とは?「coliss(コリス)」さんは、Web制作に役立つ情報を提供する有名なサイトのひとつです。とくに海外のWeb制作情報を翻訳、紹介する記事が多く、非常に多岐にわたる情報を提供していらっしゃいます。(2)おすすめの記事例えば、CSSについては、おもしろいテクニックや、ブラウザ間の差異をうめるような方法、最近であれば CSS3関連のネタなどですね。『CSS3...
20:29 CakePHPWorkshop関西 - メガネ女子(20)のメモブログ »はてなブックマーク - タグ「cakephp」を含む注目エントリー
PHP, MYSQL | 22:403/13(土)に行われたCakePHPWorkshop関西に参加させていただきました!前日に偶然参加させていただく事に決まったので、PCの環境設定がまったくできてなくて、かなり焦って準備しましたw必要バージョンApache2 以降PHP5.2 以降MySQL5 以降内容・Chapter0 CakePHP Conventionso CakePHPの規約に慣れよう・...
20:26 PHPでのセキュリティ対策についてのメモ - Liner Note »POOKMARK Airlines - タグ:php
18:52 Open letter to designers and UI experts - Horde news »Planet PHP
We've sent out a letter to a number of designer and interface mailing lists, asking for help improving the user interface of the upcoming Horde 4. Here's the text of that letter, if you feel addressed, don't hesitate to talk to me personally or leave a note on one of the Horde mailing lists.
16:30 <Symfony Componentsシリーズ(1)> オブジェクトをつなぐEvent Dispatcher : アシアルブログ »はてなブックマーク - タグ「symfony」を含む注目エントリー
こんにちは。小川です。 先日Symfony 2のアプリケーション構成を読むという記事で、Symfony 2の大まかなアプリケーションのディレクトリ構成と、KernelやBundleという存在について書きました。Symfony 2を語る上でSymfony Componentsの存在はかかせません。本日は一挙2本立て!Symfony Componentsの中でも特に重要になるEvent Dispatc...
16:29 EU VAT Checker »PHP Classes: Latest entries
Package:
Summary:
Validate European Union VAT numbers
Groups:
Author:
Description:
This class can be used to validate European Union VAT numbers.

It takes a VAT number issued by any European Union member and performs basic checking to see if the number can be valid.

Then the class also validate the VAT number by sending a HTTP request to a site of an European Union that checks if the given number is valid and exists.


16:29 YouTube Trailer »PHP Classes: Latest entries
Package:
Summary:
Search and embed movie trailers from YouTube
Groups:
Author:
Description:
This class can be used to search and embed movie trailers from YouTube.

It can send an HTTP request to retrieve and parse the YouTube search result pages for a trailer of a given movie.

The class extracts the identifier of the first result video and generates HTML to embed that video in a Web page.


14:23 Re: レンタルサーバーでのCakePHPの環境構築 »CakePHP Users in Japan
cakephp、mod_rewrite、.htaccessをググれ。
ヒントはRewriteBaseだ。

これはCakePHPの問題じゃない。
Apacheの設定の問題。

だからレンタルサーバ屋に聞けばよい。

※/アプリケーション/テーブル名/とか、完全に間違った解釈なので勉強しなおしたほうが良い
14:00 CakePHP 1.3.0-RC2リリース »CakePHP Users in Japan
CakePHP 1.3.0-RC2がリリースされています。
機能はすでにすべて実装されており、バグの修正のみが行われています。

CakePHP 1.3.0-RC2 released
By Mark Story (mark_story)
http://bakery.cakephp.org/articles/view/cakephp-1-3-0-rc2-released
13:59 CakePHPWorkshop関西 »CakePHP Users in Japan
CakePHPWorkshop関西の様子がまとめられています。

忍び歩く男 - SLYWALKER
CakePHPWorkshop関西が無事終了しました!
http://d.hatena.ne.jp/slywalker/20100315/1268617377
13:56 ワンタイムパスワード実装例 »CakePHP Users in Japan
ワンタイムパスワードの実装例だそうです。

How to implament One Time Password for forgot-my-password and account-activation processes
By Amir Shevat (ashevat)
13:47 print_r()の代わりにKrumoでデバッグ表示 »CakePHP Users in Japan
print_r()による表示よりわかりやすく色分け表示できるそうです。

Sexy Cake with Krumo: Say Goodbye to print_r()
By Stacy Pawlowich (stac80)
http://bakery.cakephp.org/articles/view/sexy-cake-with-krumo-say-goodbye-to-print_r
13:45 Google PageRankコンポーネント »CakePHP Users in Japan
fsockopen()を使ってページランク情報を取得する方法だそうです。

Google PageRank Component
By Chad R Smith (chadsmith729)
http://bakery.cakephp.org/articles/view/google-pagerank-component
13:42 Google Static Maps APIヘルパー »CakePHP Users in Japan
Google Static Maps API
http://code.google.com/intl/ja/apis/maps/documentation/staticmaps/

のヘルパーだそうです。

Google static maps helper for CakePHP
By Karl Mendes (kmendes)
13:40 Google Custom Searchコンポーネント »CakePHP Users in Japan
Googleのcustom search apiを使用したサンプルだそうです。

http://code.google.com/intl/ja/apis/customsearch/
「Google カスタム検索では、1 つのウェブサイトまたはウェブサイトのコレクション上で検索ができます。Google...
13:00 Jaws 0.8.11 released »Jaws
We are happy to announce the release of Jaws 0.8.11, changes since 0.8.10 are:
  • More compatible with PHP 5.3
  • Fixed compatibility with PHP 4
  • Fixed error in Search gadget
  • Fixed error in Jaws_Crypt
  • Added paging to monthly view and archive by date actions in Blog gadget
  • Fixed an issue in PostgreSQL driver
  • Add Norwegian Language
  • Update Turkish translation

Requirements

  • PHP >= 4.3.6
  • MySQL >= 4.1
  • Postgresql >= 7.4
  • Oracle >= 8.0
  • MSSQL >= 8.0
  • Firebird >= 1.5
  • Interbase >= 6.0
  • SQLite >= 2.8
  • Apache 1.3, Apache 2, Cherokee >> 0.4.29 (under fcgi) and IIS

Download

To download the package(s) just click here!.
Thanks for all of you who reported bugs!
12:30 My little film »simplate Google Group
Hello group. Im Joan , and I just cast my short new ero video. Is it
looks OK?
[link]
12:30 開発に使えるチートシートがごろごろまとまっている『Dev Cheat Sheet』 - 100SHIKI ~ 世界のアイデアを日替わりで »del.icio.us/popular/php
12:30 MicroTut: Getting And Setting Cookies With jQuery & PHP – Tutorialzine »del.icio.us/popular/php
12:29 Olut について »はてなブックマーク - タグ「php」を含む注目エントリー
Olut(オルット)は外食産業大手ニユー・トーキヨーの物流子会社 NTCの販売管理・在庫管理業務のウェブアプリケーションで、オープンソース(GPL)として公開されており、2005年オープンソース・ビジネス・アワード を受賞しています。 システム開発は、株式会社テクナレッジ が行いました。 主な機能入荷登録/出荷登録/在庫登録/倉庫移動荷渡明細/買掛金報告/業者別仕入一覧/入荷報告入出荷差益高比較票...
12:29 <Symfony Componentsシリーズ(1)> オブジェクトをつなぐEvent Dispatcher : アシアルブログ »はてなブックマーク - タグ「php」を含む注目エントリー
こんにちは。小川です。 先日Symfony 2のアプリケーション構成を読むという記事で、Symfony 2の大まかなアプリケーションのディレクトリ構成と、KernelやBundleという存在について書きました。Symfony 2を語る上でSymfony Componentsの存在はかかせません。本日は一挙2本立て!Symfony Componentsの中でも特に重要になるEvent Dispatc...
12:29 【GDC2010】1億人のユーザーを抱える『FarmVille』の開発と運用・・・Zynga / GameBusiness.jp »はてなブックマーク - タグ「php」を含む注目エントリー
ソーシャルゲームメーカーとして世界最大、実に2億人のユーザーを抱えるZynga。中でも『FarmVille』は牧場系ソーシャルゲームの原点であり、かつユーザー数も1億人を超える世界最大のソーシャルゲームです。GDC初日の「Social & Online Games Summit」ではZyngaのAmitt Mahajan氏が登壇し、「Rapidly Developing FARMVILLE: Ho...
12:29 オープンソースのPHP製アクセス解析ソフト「SlimStat」 | Web活メモ帳 »はてなブックマーク - タグ「php」を含む注目エントリー
「SlimStat」はオープンソースでできたアクセス解析ソフトです。Google Analyticsのような解析ソフトを自前で構築する際(Analyticsが何かの理由で使えない場合)のためなどに、覚えておいても良いかもしれません。詳しくは以下 リアルタイムな解析通常のアクセス解析にある基本的な機能はもちろんそなえています。特徴的なのはユーザのブラウジングデータを一覧で表示する機能。アナリティクス...
12:29 ctype_digit関数の罠 - hnwの日記 »はてなブックマーク - タグ「php」を含む注目エントリー
PHPにはctype_digitやctype_lowerなど、ctype_XXXXという関数が多数あります。本記事の話題はこれらctype関数の挙動と注意点についてです。 ctype関数のマニュアルには下記のような記述があります。 これは、256 より小さな整数が指定された場合、指定した範囲 (数値は 0x30-0x39) に収まっているかどうかを調べるために、そのアスキー値を使用することを意味し...
12:29 MOONGIFT: » 実務でも使われている物流会社向け販売、在庫管理システム「olut 販売管理システム」:オープンソースを毎日紹介 »はてなブックマーク - タグ「php」を含む注目エントリー
olut 販売管理システムはPHP+MySQL/PostgreSQLのオープンソース・ソフトウェア。基幹システム系は元々携わっていたこともあって好きな分野だ。業務システムならではのインタフェースはあまり好きではないが、最近ではWebシステム化も進んでおり、より使いやすいシステムが増えている。インデックス基幹システムの基礎になるものと言えば販売管理システムになるだろう。そこにデータを入れるべく顧客、...
12:29 PHP OpenID Library で RP Discovery要求対応の例 « てっく★ゆきろぐ Rev2 »はてなブックマーク - タグ「php」を含む注目エントリー
具体的に言うとdocomo IDのことなんですが(笑) とりあえずわかったことなんでメモ。OpenIDそのに関しては前書いたメモがあるんでそっち参照。 で、今回の件。docomo IDの場合、RP Discoveryするんで、TrustRoot のaddressに、Accept: application/xrds+xmlで要求かけてるんですよね。 だから、index.php で、Acceptを判定...
12:29 PHP、Perl、Ruby、C、C++等40以上の言語をブラウザで実行できるようになるjQueryプラグイン「Run This」:phpspot開発日誌 »はてなブックマーク - タグ「php」を含む注目エントリー
PHP、Perl、Ruby、C、C++等40以上の言語をブラウザで実行できるようになるjQueryプラグイン「Run This」2010年03月11日-Run This! PHP、Perl、Ruby、C、C++等40以上の言語をブラウザで実行できるようになるjQueryプラグイン「Run This」。 ブラウザ内の
コードで記述した部分を、その場でそのまま動かすことができ、うまくサイトに組...
12:29 phpfarm - 複数のバージョンを同一マシンに簡単にインストールする - Do You PHP はてな »はてなブックマーク - タグ「php」を含む注目エントリー
取り急ぎ、商会紹介だけ。過去にid:hnwさんが前バージョンのバイナリ持ってますという話をされてましたが、同一マシンに複数のバージョンのPHPを簡単にインストールするphpfarmコマンドがsvn.php.netに登録されているようです。Test on different machines with another PHP version on eachTest on different PHP ...
12:29 SlimStat: Simple web analytics »はてなブックマーク - タグ「php」を含む注目エントリー
SlimStat is a simple but powerful web analytics program.Get up and running in secondsDrill-down and filter data in any way you chooseDownload it freeWhat’s new in version 2.1There are too many new fea...
12:29 Webサービスのメール配信部分だけを肩代わりしてくれる『PostageApp』 - 100SHIKI ~ 世界のアイデアを日替わりで »はてなブックマーク - タグ「php」を含む注目エントリー
実際に試したわけではないが、コンセプトが良いのでご紹介。PostageAppは、あなたが作ったWebサービスのメール配信部分だけを肩代わりしてくれるサービスだ。今のところRuby On RailsとPHPのみに対応しているようだが、これを使えば簡単な命令を書くだけでさまざまなメール管理が可能になるという。メールのテンプレート管理や、誰にどのメールが届いたかなどをブラウザから見たり、といったことが実...
12:29 かなりカッコいいPHP&MySQLなAjax式コンタクトフォーム:phpspot開発日誌 »はてなブックマーク - タグ「php」を含む注目エントリー
PHP/MySQL Contact Form with jQuery | Codrops かなりカッコいいPHP&MySQLなAjax式コンタクトフォーム。 次のようなレイアウトのコンタクトフォームがダウンロード出来ます。 入力すると文字に影がつき、フォーカスもハイライトされます。 入力必須フィールドのValidationもjavascriptにて制御されます。 送信すると、ふわっ、とメールアイコ...
12:29 開発に使えるチートシートがごろごろまとまっている『Dev Cheat Sheet』 - 100SHIKI ~ 世界のアイデアを日替わりで »はてなブックマーク - タグ「php」を含む注目エントリー
休日なのでマニアックな話題でw。あなたが開発者ならDev Cheat Sheetは覚えておくべきサイトだろう。このサイトではPHPやCSS、ActionScriptといった主要な技術のチートシートがこれでもか!というぐらいまとまっている。まだ慣れないうちはこうしたチートシートを手元においておくといいだろう。もちろん中級者、上級者も自分の知識を確認するために活用したいところだ。効率的な開発をすすめる...
12:29 hiromasa.another :o)» Blog Archive » Ecipse PDT 3.5 + xampp + xdebug を使った PHP デバッグ »はてなブックマーク - タグ「php」を含む注目エントリー
たまに WordPress の不具合などでご質問をうけるも、初見のプラグインとかもすぐ直しちゃって「なんでそんなにすぐ分かるの?」と聞かれることありますが、タネを明かせばプログラムのおかしそうなところにデバッグブレイクひっかけて動作を見ているからです。 え?この軟弱もの? いいのいいの(笑)プログラミングの難しい部分の一つは動作が一瞬で終わることにあると思います。 普通は机上というか頭の中で考えて...
12:29 ManabiTheme – EntryLevelを公開してみます « Waviaei »はてなブックマーク - タグ「php」を含む注目エントリー
WordCamp Fukuoka 2010の2次会@APIカフェにて紹介させていただいた、「テーマを学ぶ為のテーマ」、名付けてManabiTheme、を公開します!このManabiTheme(学びテーマ)は、「テーマを学ぶ為のテーマ」として作成しました。外部に公開するWordPressブログ用のテーマとしても使用可能ですが、それよりは、ローカル環境(XAMPP等)にてWordPressテーマを学ぶ...
12:29 PHPによってCSSを動的に出力する初心者向けチュートリアル:phpspot開発日誌 »はてなブックマーク - タグ「php」を含む注目エントリー
Build Your Site With Dynamic CSS - Fantastic Web Design PHPによってCSSを動的に出力する初心者向けのチュートリアルが公開されてます。 CSS自体をPHPで書いてしまうことで変数の使い回しや、if 文によって柔軟な出力ができるようになりますが、まだPHPを使ったことがない、という方にもわかりやすい解説になっているのでPHP入門としても使えそ...
12:29 Simple Validation Framework Haraiso - localdisk »はてなブックマーク - タグ「php」を含む注目エントリー
PHPここのところ、夜なべして作っていたのがようやく形になったので公開します。localdisk / Haraiso / overview — bitbucket.orgコメントアノテーションで Validation を行います。使い方はとても簡単。localdisk / Haraiso / downloads — bitbucket.orgより Zip ファイルをダウンロードして解凍解凍してでき...
12:29 Back Propagation Scale »PHP Classes: Latest entries
Package:
Summary:
Implement neural networks using back propagation
Groups:
Author:
Description:
This class can be used to implement neural networks using back propagation.

It can setup a neural network work with a given number of layers.

The class takes a data set and a test output data set and runs the neural network using back propagation to to adjust weights based on network errors.


12:29 CTimer »PHP Classes: Latest entries
Package:
Summary:
Measure the time elapsed during PHP execution
Groups:
Author:
Description:
This class can be used to measure the time elapsed during PHP execution.

It can start counting time and at any time later stop and get the elapsed time since the start.


12:29 DS Pager »PHP Classes: Latest entries
Package:
Summary:
Show links to browse listings split in pages
Groups:
Author:
Description:
This class can be used to show links to browse listings split in pages.

It takes as parameters the total number of entries in the listing, the limit number of entries displayed per page and the number of the current page.

The class shows links to browse to the first, previous, next and last pages.

It can also return the total number of pages and a string with the values for the LIMIT clause of a SELECT database query.


12:29 Easy file upload »PHP Classes: Latest entries
Package:
Summary:
Display and process forms to upload multiple files
Groups:
Author:
Description:
This class can be used to display and process forms to upload multiple files.

It can generate HTML to display one or more file upload fields in a form.

The class can also process the uploaded files by moving them to a given target directory, if they have one of the allowed file name extensions and do not exceed a given size limit.


12:29 flexGen »PHP Classes: Latest entries
Package:
Summary:
Generate code to show MySQL results using Flex
Groups:
Author:
Description:
This class can be used to generate PHP code to show MySQL results in a Flex application.

It can generate a Flex application definition for retrieving results of a MySQL query and displaying in a data grid presented using Flex.

The class can also generate the PHP code script that runs on the server side to execute and retrieve the MySQL results.


12:29 Image uploader class »PHP Classes: Latest entries
Package:
Summary:
Process uploaded image files
Groups:
Author:
Description:
This class can be used to process uploaded image files.

It can copy uploaded files to a given destination directory if the directory exists and is valid.

The class can also and crop and resize files that are images.


12:29 Shorten url »PHP Classes: Latest entries
Package:
Summary:
Shorten and expand URLs using different services
Groups:
Author:
Description:
This class can be used to shorten and expand URLs using different services.

It can send HTTP requests to the Web services API servers of different URL shortening services to perform either shortening (or expanding in the case of some of the services) of given URLs.

Currently it supports the URL shortening services: tinyurl.com, bit.ly, cli.gs, goo.gl, kl.am, is.gd, tr.im .


12:29 Table Simple »PHP Classes: Latest entries
Browser view
Package:
Summary:
Display MySQL query results in HTML tables
Groups:
Author:
Description:
This class can be used to display MySQL query results in HTML tables.

It can execute a given MySQL SELECT query and display the results in an HTML table.

The table attributes, row colors, pagination links, custom column, etc. can be configured.


12:27 links 0.24bリリース »XOOPS Cube公式サイト
links 0.24b(安定度: ベータ版)リリースです。 リリース日時: 2010年3月12日 リリースノート: http://xoopscube.jp/module/release/852 ダウンロード: http://xoopscube.jp/module/release/852
12:27 webphoto 2.11リリース »XOOPS Cube公式サイト
webphoto 2.11(安定度: 正式版)リリースです。 リリース日時: 2010年3月6日 リリースノート: http://linux.ohwada.jp/modules/wfdownloads/singlefile.php... ダウンロード: http://xoopscube.jp/module/release/851
12:27 yomi 0.91リリース »XOOPS Cube公式サイト
yomi 0.91(安定度: 正式版)リリースです。 リリース日時: 2010年3月11日 リリースノート: http://xoopscube.jp/module/release/853 ダウンロード: http://xoopscube.jp/module/release/853
11:54 配列から一番近い値を取り出す »Q&A掲示板
お世話になります。 $a = array(100,200,300,400,500); という配列から、 $b = 250; よりも小さくて、一番近い値(この場合は200)を返してほしいのですが やり方がわかりません。 どなたかご教示願えませんでしょうか。 よろしくお願いいたします。
06:40 A week of symfony #167 (8->14 March 2010) »symfony project weblog

Symfony project unveiled this week some new details about its console, routing, output escaper and request handler components during the ConFoo conference.

Development mailing list

Development highlights

Symfony 1.X branch:

  • r28508: [YAML] fixed parsing of folded scalars when a # sign starts a line (reverted)

Symfony 2.X branch:

  • dad7..f678: [ProfilerBundle] allows the BundleStorage to use PDO_SQLITE as well as SQLite3 and fixes a bug in purge()
  • 2bc4..8a4e: [Routing] changed matching to only check for method if it is available in the context
  • 0d05..6422: [Routing] added requirements checking when generating a route
  • d229..2430: [Console] added __get() to Command to have shorter and more readable code in commands
  • fff1..37c0: [DoctrineBundle] fixed the overridding of an Entity

...and many other changes

Development digest: 112 changesets, 24 bugs reported, 6 bugs fixed, 2 enhancements suggested, 1 enhancement closed, 7 documentation defects reported, and 37 documentation edits.

Documentation

New Job Postings

  • PHP Software Engineer at NationalField - Contact: career@nationalfield.org
  • PHP/Symfony developer at JCDecaux - 3 moths contract based in Plaisir, France - Contact: nicolas DOT steinmetz AT jcdedcaux DOT fr
  • PHP/Symfony developer at C'Digital - Contact: contact@agencecdigital.com

New symfony bloggers

Plugins

  • New plugins
    • sfDoctrineRevisitedGeneratorPlugin: adds an extra theme to sfDoctrineGenerator, which adds the capability of the show action.
    • apostropheFormBuilderPlugin: (no description)
    • apostropheBlogPlugin: (no description)
    • dcSwishPlugin: allows you to index files on the filesystem of the server and search by keywords. This can be done using a module provided by the plugin.
    • sfWidgetFormjQueryDatePickerPlugin: small plugin to use jQuery's date picker in symfony. It is based on sfWidgetFormJQueryDate.
    • sfjQueryDoctrineAdminPlugin: a jQuery based admin for Doctrine, using javascript and ajax (soon) to have more friendly interfaces.
    • rcParallelTaskPlugin: allows to create task that can fork for parallel processing. It provides an easy way to create as many child as you want and a simple queue and lock system.
    • gyImagenePlugin: (no description)
    • sfUserOnlinePlugin: allows you to manage user status by changing user class in your factories.yml to sfUserOnline. This class extends sfUser class and you don't drop any user logic.
    • vjCommentPlugin: it provides a comment behavior. Now, everything is commentable!
    • sfPropelCachePlugin: use a Propel connection for symfony caching.
    • sfdisichartPlugin: creates chart based on Highcharts-1.1.3 javascript library.
    • xtDojoPlugin: (no description)
    • fzDoctrinePagedRoutePlugin: provides route and route collection classes which makes it easy to create routes for paged lists and their elements.
    • sfImageTransformExtraPlugin: provides all means to configure any set of thumbnail formats with all possible transformations in a YAML file. All these configured settings can be applied to any kind of source image using a nice URL schema.
  • Updated plugins
    • mgI18nPlugin: removed doctrine files, fixed connection access, removed __() helper dependency in the action, fixed issue with queries, updated yaml configuration, fixed learning mode insert when debug is true, added date management, add German translation, updated UPGRADE file
    • sfAmfPlugin: added generator to create services for all tables, renamed function in sfAmfPluginPropelGenerator, added ValueObject generator based on schema, added Doctrine Value Object generator stub, updated Propel ValueObject generator, made some refactoring on tasks/generators, added base services generator, amfBrowser display service parent methods
    • sfTrafficCMSPlugin: addon class to provide groups access checking, models are auto-configured by default now, tinymce uses sensible defaults, added home action
    • sfFCKEditorPlugin: added default path to fckeditor
    • sfMinifyPlugin: updated google minify, updated for symfony 1.3 and 1.4, enabled config param for js and css, added asset versions key, fixed docs for asset version, added default asset version
    • sfDoctrineMasterSlavePlugin: updated slave accessor to accept a connection as an argument like the master accessor
    • sfJSLibManagerPlugin: added check for sfContext instance before requesting it
    • psToolboxPlugin: added psNamedCache::removePattern()
    • sfImageTransformPlugin: fix to property typo, improvements to computeTargetSize method
    • sfDoctrineJCroppablePlugin: added some checking that images exist & target location is writable, fixed permissions checks for importing images from data/images dir
    • sfExtjsThemePlugin: added grid cell wrap to combobox editor fields
    • sfMapFishPlugin: small fixes for 1.4 better compatibility
    • csDoctrineSlideshowPlugin: first step towards making this plugin 1.4-compatible
    • sfUnobstrusiveWidgetPlugin: removed spinner "text align" inline css rule, fixed related choices (IE & chrome)
    • apostrophePlugin:
      • added PDF slot and gave slideshow meta a common class to help with styling
      • cleaned up PDF Slot to work better with IE6
      • properly return no media ids when attaching media items to other objects
      • properly return no media items for an empty list of ids when attaching media items to other objects
      • persistent file upload image previews now use the same format as the original
      • new aArray::getChoices method accepts objects and returns an associative array with ids as keys and the result of getName() on each object as values
      • added an OPTION to the slideshow slot to display a position counter between the arrow
      • added position indicator option to the slideshow and a slot class of 'single-image' to the slideshow if there is only one image in it for styling purposes
      • added single image slideshow margin adjustments
      • engines now work when the CMS is not mounted at the root of the site
      • listToHashById now takes an optional second parameter ($method) which allows you to call something other than 'getId' to get the id
      • aMultipleSelectAll and aMultipleSelect no longer require options
      • aMultipleSelect now supports an 'onChange' option
      • all of the static text emitted by the UI is now I18N
      • all of the dates and times are now I18N by default
      • constraints are now emitted as a list rather than attempting to force English grammar and a comma-separated list with "and."
      • all apostrophe forms can now at least limp along (with warnings) with no parameters to the constructor
    • apostropheBlogPlugin: initial support for categories, fixed the feed and made changes to sidebar categories, fixed rss feed for blog index, properly handling media attachment post MediaAPI, added images to recent posts component, fixed pagination for old blog plugin, initial filter dropdown prototypes, changes to blog plugin to support uncategorized category, changed excerpts so that full body won't be shown if excerpt is excluded, ported Blog engine category filter to Blog Events, calendar engine page settings form, recent news is reverse chronological, added 'categories' and 'notCategories' parameters to the recent posts component
    • apostropheFormBuilderPlugin: added sfDoctrineActAsCommentablePlugin, added photo upload for user profiles, formatted comments for chat module
    • sfSympalPlugin: fixed oldCulture is not set when changing content edit language, beginning rendering tests on asset object, changed javascript variables to not be generic so that they don't crash against project-used variables, fixed a bug where you couldn't set a default_value for a column content slot, added tinymce save trigger, fixed bug where column slots didn't respect widget and validator of slot type, added a "Column" slot type which leaves slot widget/validator to its default, fixed the editing of slots on the backend, added a config value to set the default edit_mode for any content slot, fixed inline slot bug with TinyMCE and eliminated some javascript from the template
  • New symfony powered websites

    • Tokio Group Ltd: (Dutch) webdesign & IT Solutions Company
    • Versicherungsvergleich: (Deutsch) a guide for insurances and financial topics
    • Singles: (Deutsch) magazine and platform for Singles
    • Skycheck.com Flight Search: (Deutsch) finds and compares cheap flights all over the world
    • Plancake: (English) free online todo list and tasks manager. It is open source, free, simple-to-use and feature rich.
    • Stig Facts: (English) interesting Facts about BBC Top Gear's Tamed Racing Driver called The Stig

    They talked about us


    style="margin-bottom: 5px">
    Be trained by symfony experts - Mar 24 Paris - Apr 12 Paris - Apr 21 Paris

    2010-03-14(日)

    23:17 Zend Webinar: Sichere Applikationen auf Basis des Zend Frameworks - Stefan Esser »Planet PHP

    Hier einmal ein Announcement in letzter Minute: in zwei Tagen halte ich für Zend ein Webinar über “Sichere Applikationen auf Basis des Zend Frameworks“.

    Immer mehr PHP-Entwickler setzen das Zend Framework bei der Programmierung neuer Applikationen ein. Für die Entwicklung bringt dies einige Veränderungen mit sich, da mehr und
    mehr Framework-Komponenten benutzt werden und immer weniger direkt auf PHP Funktionen zurückgegriffen wird. Dadurch ändert sich auch der Prozess, wie sichere Applikationen zu entwickeln sind.

    In diesem Webinar erfahren Sie, welche Features des Zend Frameworks die Entwicklung sicherer Applikationen erleichtern, welche Features bei falschem Einsatz zu Sicherheitsproblemen führen können, welche Sicherheitsfeatures existieren, wie man sie einsetzt und welche Sicherheitsprobleme nach wie vor alleine gelöst werden müssen.

    20:35 Smartyテンプレートの中の「@count」って何? »Q&A掲示板
    こんにちはよろしくお願いします。 下記のコードは,EC-CUBEのSmartyテンプレートの一部分です。(EC-CUBEでは,デリミタは<!--{ }-->を使っています。) このテンプレートの1行目について,解説をお願いします。@countの部分が分かりません。パイプの後ろにあるので修飾子かと思って探してみたのですが見つかりませんでした。いったい何なのでしょうか? また,この部分のテンプレートについて,御解説いただけたら有り難いです。よろしくお願いします。   <!--{if $arrPageLayout.LeftNavi|@count > 0}-->   <div id="leftcolumn">     <!--{* ▼左ナビ *}-->       <!--{foreach key=LeftNaviKey item=LeftNaviItem from=$arrPageLayout.LeftNavi}-->         <!-- ▼<!--{$LeftNaviItem.bloc_name}--> ここから-->           <!--{if $LeftNaviItem.php_path != ""}-->             <!--{include_php file=$LeftNaviItem.php_path}-->           <!--{else}-->             <!--{include file=$LeftNaviItem.tpl_path}-->           <!--{/if}-->         <!-- ▲<!--{$LeftNaviItem.bloc_name}--> ここまで-->       <!--{/foreach}-->     <!--{* ▲左ナビ *}-->   </div>   <!--{/if}-->
    20:08 処理を別プロセスで動かし監視したい。 »Q&A掲示板
    こんにちは。 webからのリクエストを受け、サーバサイドで重い処理をするので スクリプトを別プロセスで動かし、webの画面でステータス(進捗)を表示したいと思います。 下記のように記述していますが、別プロセスで動いてくれません。 OSはlinuxでphpはモジュールで動かしています。 phpのバージョンは5.3.1です。 exec(重い処理 > /dev/null & ); よろしくお願いします。
    12:11 携帯からの文字化けについて »Q&A掲示板
    こんにちは。 携帯のからの文字化けについて質問させて下さい。 例えば、自分の管理しているサイト以外で文字化けを発見したとします。 その文字が知りたくてコピーして保存していたとします。 それをformに貼りつけて変換すると、元の文字に戻れるようにしたいですが、試しに以下のようなコードを書いてみたところ、無理でした。 ですのでformの部分は、まだ書いておりません。 以下のように文字化けしている場合、 『クスコ゜者爵偲芝爵漆テ讀ヌ、ケ。』 これを元の文字に戻すには、どうしたらいいのでしょうか?? 多分、UTF-8での文字化けだと思いますが、 <?php $word="クスコ゜者爵偲芝爵漆テ讀ヌ、ケ。"; $word=mb_convert_encoding($word, "SJIS", "UTF-8"); echo$word; ?> としても戻りません。 こういった事は、そもそも可能でしょうか?? 簡単な質問ですみませんが、わかる方宜しくお願い致します。
    06:48 OMG WordPress BBQ! »WordPress Development Blog
    This weekend, thousands of WordPress users and developers are among the people attending the South by Southwest (SxSW) Interactive conference in Austin, TX. To celebrate this, we’re throwing a WordPress BBQ at SxSW tomorrow so that there’s a place for us all to get together. If you’re a WordPress fan attending SxSW (or you just happen [...]

    2010-03-13(土)

    22:18 Why I am pissed. - Lukas Smith »Planet PHP

    Being the verbose kind, I guess I will put in a summary at the top leaving the original post below for everyone to read all the little details. Essentially the summary is that I (and many other core developers) agree that HEAD/trunk in its current form was stalling future development on PHP. Jani indirectly jump started the discussion of moving this stumbling block out of the way by essentially doing two commits that violate the most fundamental rules of PHP development (and common sense courtesy) we have. I am worried that this will lead to confusion in the user base and other seem to think that the "ends justify the means". I also think that we need clearer processes to make it easier for new developers to have a clear path to follow in order to get things done in PHP.

    Full story:
    So this all requires a bit of background. I still remember my first contact with a PHP core developer. I do not quite remember the year, but it was quite some time ago. Anyway Jani was great, we filed a bug report on the imap extension. He fixed the bug in no time. IIRC we also ended up sharing a room at the second IPC in Frankfurt I attended. I think only a few years later I realized that Jani is the same guy a lot of people were complaining as being rude. But I guess few of these people realize how much time Jani has spend on verifying bug reports and what a tedious job this is, especially since most bug reports are quite low on the actual relevant details and come with a "fix my code for me, now!" attitude. In other words, I get along fine with Jani and I have great respect for his contributions to PHP.

    Next piece of background. I am also one in the long list of people that has made a fool of himself by predicting a release of PHP6 in about 18 to 24 months (quite a few people have given this prediction over the past 3-4 years I guess). I have also been one of the people that has tried to motivated people at various times to finish those last 2% that seem to be missing to complete PHP6 in terms of functionality. As such I have opposed a PHP 5.4 because I felt its time to focus on finish up PHP 6 which we have promised people for so long. After releasing 5.3.0 I was hoping things would happen. But last weekend I came to the realization that we have waited long enough. That even if PHP 6 would be unicode bliss (at least in terms of features, probably not in terms of performance), the fact of the matter is that in all of the many years nobody put in the time to finish it. This imho is an indirect proof that the approach taken apparently does not hold enough merit to the world in general. Furthermore looking at internals since last summer it has been more dead than ever: PHP 6 aka HEAD aka trunk had become such a motivation killer that nothing was happening.

    At the same time I knew that suggesting to move trunk to a branch and copying 5_3 to trunk would cause a lot of confusion. Not only among those reading internals, but also that this would quickly make it to the news sites of the world. Call it politics, marketing or just an unwillingness to cause thousands (millions?) of PHP developers distress and uncertainty, but I figured it would be better to propose this with a semi solid plan and giving a number of PHP core developers the heads up that I will bring this to the list, so that they also could prepare themselves. So I started talking to people offlist, either in person, via phone, via IRC/skype or via email with the full intention of going to the list no later than the end of this month, ideally sooner rather than later. I should also note, I do not code C, I also do not consider myself a unicode expert. So if I wanted to present a plan, I obviously needed to talk to people to get my facts straight.

    Anyways, this week Jani decided to commit a patch. I guess I didn't mention one more piece of background. Jani had asked to get this patch into PHP 5.3 during the pre alpha stage, but at the time Johannes and I (I was co-RM back then) felt that the patch hadn't been tested enough in HEAD and that while we knew the patch fixes several bugs, we felt the risk of introducing new bugs was too high, especially since Michael who wrote the original patch for HEAD was not always around to fix things. Johannes had tried to get the patch into 5.3 six months earlier, but at the time nobody had time to do the work. So we decided to stick with the known bugs, instead of fixing them and risking new bugs in a very core component of PHP close to going alpha. So basically Jani committed a huge patch into a stable branch, without talking to anyone about this, despite knewing full well that the RM had specifically vetoed this patch in principle. Furthermore the patch from my understanding even breaks the ABI which makes the patch even more a no go.

    No

    Truncated by Planet PHP, read more at the original (another 6351 bytes)

    21:51 Diem version 5.0.0 released, now stable »php|a news
    Since development of version 5.0 started Diem has been an open source initiative. The first stable version is now released.
    14:00 ディレクトリーを配列にする方法 »Q&A掲示板
    いつもお世話になっております。 testというディレクトリーにある全てのディレクトリーを配列にして、そのディレクトリー名だけを取得したいのですが、どうすればよいのでしょうか?? ▽例 test/a test/b test/c test/d この配列を使ってa,b,c,dに入っているtest.datというファイルの中身を取り出したいと思っています。 そのtest.datには、 あ,い,う,え,お と入っていると仮定します。 <?php /*ここにディレクトリーを配列にしてファイル名を取得する処理を入れたい*/ $array = ( a , b , c , d ) ;   /*この$arrayの部分は、手動で書いていますので、処理出来ますが、自動的にファイル名を取得出来るのが理想です。多分、この前にもう一回foreachかfor等ではないかとは思うのですが、よくわかりません(>_<)*/   foreach ( $array   as   $item ){ $file = " test/ $item /test.dat " ; $file1 = file_get_contents ( $file ) ; $data = explode ( " , " , " $file1 " ) ; echo " ■質問1<br> " ; echo " $data [0] " ; echo " ■質問2<br> " ; echo " $data [1] " ; echo " ■質問3<br> " ; echo " $data [2] " ; echo " ■質問4<br> " ; echo " $data [3] " ; echo " ■質問5<br> " ; echo " $data [4] " ; } ?> これで test/a/test.dat の中身だけは、表示出来ます。 これをa~dまでforeachで処理したいと思っていますが、やり方がわかりません。 わかる方、初心者でもわかるように具体的に教えて頂けると助かります。 宜しくお願い致します!!
    07:32 Libertyvasion 2010 »phpBB.com Announcements
    It gives me great pleasure to announce and provide some preliminary information about our plans to hold an event this summer.

    After the success of Londonvasion 2008, we expressed our intention to hold annual events in different locations around the world. Due mostly to time constraints, we made the difficult decision of skipping the organisation of a conference last summer and instead held or participated in some smaller events (The Management/Developer Meeting, OSCON, etc.). We have been accumulating our excitement and are determined to make up for lost time this year!

    When?
    21st August, 2010

    We chose a date that would not conflict with other relevant conferences taking place during the summer.

    The Location
    The Times Square Area
    New York City, NY
    United States of America

    Below is a map of the area. The exact name/address of the venue will be announced at a later time. As you can see, some hotels and other interesting points have been marked for your convenience. These will be updated as more information is received and announced.


    View Hotels NY in a larger map

    Registration
    Admission to the event will require prior registration. We will charge a nominal fee (Londonvasion was £10) to dissuade registration by individuals who have no intention of actually attending. Another announcement will be posted when the registration page is opened. A large meeting room has been booked and plenty of tickets will be available.

    Sponsorship
    Please email libertyvasion[AT]phpBB[DOT]com if you or your organisation are interested in sponsoring Libertyvasion. We would be happy to distribute your materials or discuss alternative means of advertising during the event. In addition to the physical event itself, we will be publishing photos and videos (as was done for Londonvasion).

    Post-conference social event
    After the conference, we will reconvene at a local restaurant/bar for a social event lasting into the night. The minimum drinking age throughout the United States is 21, however the restaurant does not require attendees to be 21 years old. All are welcome.

    Additional information
    Additional information, including summaries of anticipated talks, can be found on the Livertyvasion page. That page will be updated continuously throughout the months leading up to the event. As with Londonvasion, we also intend to publish videos and photos afterward.

    Please plan your work/school/etc. responsibilities appropriately if you wish to attend. Additional information will be posted soon.

    Thanks,

    The phpBB Team
    ----------------------------------------------------------


    Please use the [Discuss] Libertyvasion 2010 to discuss this announcement.
    07:32 Libertyvasion 2010 »Latest phpBB.com announcments
    It gives me great pleasure to announce and provide some preliminary information about our plans to hold an event this summer.

    After the success of Londonvasion 2008, we expressed our intention to hold annual events in different locations around the world. Due mostly to time constraints, we made the difficult decision of skipping the organisation of a conference last summer and instead held or participated in some smaller events (The Management/Developer Meeting, OSCON, etc.). We have been accumulating our excitement and are determined to make up for lost time this year!

    When?
    21st August, 2010

    We chose a date that would not conflict with other relevant conferences taking place during the summer.

    The Location
    The Times Square Area
    New York City, NY
    United States of America

    Below is a map of the area. The exact name/address of the venue will be announced at a later time. As you can see, some hotels and other interesting points have been marked for your convenience. These will be updated as more information is received and announced.


    View Hotels NY in a larger map

    Registration
    Admission to the event will require prior registration. We will charge a nominal fee (Londonvasion was £10) to dissuade registration by individuals who have no intention of actually attending. Another announcement will be posted when the registration page is opened. A large meeting room has been booked and plenty of tickets will be available.

    Sponsorship
    Please email libertyvasion[AT]phpBB[DOT]com if you or your organisation are interested in sponsoring Libertyvasion. We would be happy to distribute your materials or discuss alternative means of advertising during the event. In addition to the physical event itself, we will be publishing photos and videos (as was done for Londonvasion).

    Post-conference social event
    After the conference, we will reconvene at a local restaurant/bar for a social event lasting into the night. The minimum drinking age throughout the United States is 21, however the restaurant does not require attendees to be 21 years old. All are welcome.

    Additional information
    Additional information, including summaries of anticipated talks, can be found on the Livertyvasion page. That page will be updated continuously throughout the months leading up to the event. As with Londonvasion, we also intend to publish videos and photos afterward.

    Please plan your work/school/etc. responsibilities appropriately if you wish to attend. Additional information will be posted soon.

    Thanks,

    The phpBB Team
    ----------------------------------------------------------


    Please use the [Discuss] Libertyvasion 2010 to discuss this announcement.
    07:27 Search without the Database - Paul Reinheimer »Planet PHP
    I gave my second talk at #ConFoo today, this one was on Searching without the Database. This talk was based on a situation at work where I replaced a MySQL search solution with a Sphinx + Memcached solution for higher performance. If you're interested, here's the slides: Search without the DB - ConFoo 2010.pdf.

    If you attended my talk, you can rate it on the Joind.in Page
    06:40 Running Apache with a dozen PHP versions - Christian Weiske »Planet PHP

    After showing you how to set up multiple PHP versions on a single machine, it's time to explain how to stuff all those compiled php-cgi executables into a single Apache web server instance.

    Idea

    • Instead of using mod_php, mod_fastcgi is going to be utilized.
    • Every single PHP version runs its own CGI server
    • Configuration of used PHP version is made per virtual host.

    Installation of FastCGI

    Debian

    The Debian setup is painless:

    aptitude install libapache2-mod-fastcgi apache2-mpm-worker apache2-suexec
    a2enmod actions fastcgi suexec

    CentOS

    The open source version of Redhat's operating system does not provide the fastcgi module for Apache, which is why one needs to install it by hand. It's trivial.

    Assuming phpfarm is installed in /root/phpfarm, you need to chmod +x /root. Last but not least is setting up permissions for the fastcgi state files: chmod +x /var/log/httpd.

    FastCGI setup

    After mod_fastcgi is available, we need to prepare the FastCGI servers. Open /etc/{apache2,httpd}/{apache2,httpd}.conf and make it load conf/php-cgisetup.conf before including server.conf. Put the following lines into conf/php-cgisetup.conf:

    #php-cgi setup
    #used for multiple php versions
    FastCgiServer /var/www/cgi-bin/php-cgi-5.2.12
    FastCgiServer /var/www/cgi-bin/php-cgi-5.3.0
    FastCgiServer /var/www/cgi-bin/php-cgi-5.3.1
    ScriptAlias /cgi-bin-php/ /var/www/cgi-bin/
    

    PHP-CGI setup

    For each single php version you installed with phpfarm, you need to create a file /var/www/cgi-bin/php-cgi-$version and make it executable. Example for php-cgi-5.3.2:

    #!/bin/sh
    PHPRC="/etc/php5/cgi/5.3.2/"
    export PHPRC
    
    PHP_FCGI_CHILDREN=3
    export PHP_FCGI_CHILDREN
    
    PHP_FCGI_MAX_REQUESTS=5000
    export PHP_FCGI_MAX_REQUESTS
    
    exec /root/phpfarm/inst/bin/php-cgi-5.3.2
    

    Activating a PHP version in a virtual host

    If you followed all of the previous steps, everything is setup now and ready to be used. In your /etc/{apache2,httpd}/conf/server.conf, put the following code in each section that you like to switch to a certain version of PHP:

      var/www/FIXME">
        AddHandler php-cgi .php
        Action php-cgi /cgi-bin-php/php-cgi-5.3.2
      
    

    Conclusion

    With the simple steps listed above and the help of phpfarm, you are able to test your web applications in a dozens or more PHP versions easily.

    As as side note: The CGI versions of PHP are only used on the vhosts that you determine. All others are still served by mod_php that was probably setup before, making it trivially easy to keep your server's main web sites up-to date with your distribution's package manager.

    05:48 Matthew Weier O'Phinney's Blog: Module Bootstraps in Zend Framework: Do's and Don'ts »PHPDeveloper.org

    Matthew Weier O'Phinney as a new post to his blog today looking at a few "do's" and "dont's" when it comes to working with module boostraps in your Zend Framework applications - an apparently somewhat confusing topic for several developers out there.

    In Zend Framework 1.8.0, we added Zend_Application, which is intended to (a) formalize the bootstrapping process, and (b) make it re-usable. One aspect of it was to allow bootstrapping of individual application modules -- which are discrete collections of controllers, views, and models.

    He talks briefly about why module boostraps are run on every request (getting into some detail on Zend_Application), how you can properly set up your boostrapping process and how you can use plugins to initialize only the things you might need and, as he openly admits, that there's just not a really good way to handle this sort of module funcionality.

    05:30 Solar 1.0.0 Stable Released »php|a news
    Solar 1.0.0 Stable was released on Monday, and even Slashdot has noticed.
    04:13 Pablo Viquez's Blog: Zend Framework Documentation »PHPDeveloper.org

    Pablo Viquez has put together something that all of the Windows-based Zend Framework developers might find very useful during their next offline (or online, really) development session - a Windows Help file version of the Zend Framework manual.

    As you might now, you can view and download the Zend Framework reference manual from the Zend Framework site and download it from the download section, however what I wanted was the Windows compiled version of it (CHM file). In order to get this version you need to compile the documentation, after running into some small issues, I manage to do it, and to save you some work.

    He only had to fix an issue with one XML file to correct some escaping in the Zend_Feed_Writer.xml and zend.feed.writer.html files. You can download both the English CHM and the Spanish CHM files depending on your needs.

    03:58 Johannes Schluter's Blog: Future of PHP 6 »PHPDeveloper.org

    With the releases in the PHP 5.x series (5.3 and now a newly branched 5.4), people have been left wondering about PHP 6 and the promised Unicode support it will include. Development on that branch had all but stalled out and things weren't looking too good for the method of introducing full Unicode support to the language. Johannes Schluter has some good news, though - the effort has been restarted and a new approach has been decided on.

    Yesterday the stagnation created by the situation has been resolved and it was decided that our trunk in svn will be based on 5.3 and we'll merge features from the old trunk and new features there so that 5.3 will be a true stable branch. The EOL for 5.2 has not yet been defined but I suggest you to really migrate over to 5.3, which usually can be done with very little work, as soon as possible.

    Discussion are being made about which type of Unicode support will actually be introduced with a "string class" wrapper gathering some support behind it to provide an alternative to the current string handling.

    03:31 Not-so-shortlisted! - Mark Dennehy »Planet PHP
    I got shortlisted for Best Technology Blog in the Irish Blog Awards!
    02:03 Ian Christian's Blog: Handling Uploaded file in symfony's admin generator »PHPDeveloper.org

    Ian Christian has an informative new post for the Symfony developers out there. He's figured out a way to handle uploaded files with Symfony's admin generator relatively easily, changing the filename option.

    When a file is uploaded using sfForm in the admin generator, by default the filename that's used is a random string, which can look bad in URLs. If you want to change this, it's not immediately obvious how - but it is incredibly simple.

    The Symfony project does have some documentation on the topic, but it's not the easiest to read. It basically boils down to is defining a function in your extended class based on the name of the file where you can change the name however you'd like. Code snippets are included to make the point a bit more clear.

    01:41 Jani Hartikainen's Blog: Should a failed function return a value or throw an exception? »PHPDeveloper.org

    Jani Hartikainen poses an interesting question on his blog today - is it more correct for a function, having failed at its job, to return a value of throw an exception.

    You have created a nice, well written function, but you realize you forgot something: The failure case. What should a function do when it fails? There are two schools for this - the "throw an exception" school and the "return an error value" school. But which of these is the correct approach?

    He suggests that this debate has stuck around from the time when there weren't exceptions in several popular programming languages and that returning the value was the only valid way. He touches on what an exception condition is (with a few code examples) and situations where each choice might be the right way to go.

    01:30 The Future Of PHP »php|a news
    There's been a significant decision reached recently concerning the future of PHP, in particular for the development of PHP 6. Yesterday, the PHP Internals group reached what seems to be a tentative agreement to postpone implementation of a Unicode PHP engine, and instead focus on developing PHP 5.3 as the main PHP development branch.
    00:56 openQRM Cloud now supports Windows »SourceForge.net: SF.net Project News: openQRM
    With openQRM's focus on a complete framework for sustainable Datacenter Management the additional support for the Windows Operating-System is another important step into the direction of a "single-management console" for IT Infra-Structures. The new rapid provisioning features for the Windows OS are also fully integrated into the openQRM Cloud allowing their users to transparent request custom Windows server which are then automatically deployed within minutes.
    00:37 Brian Swan's Blog: MSSQL vs. SQLSRV: What's the Difference? (Part 2) »PHPDeveloper.org

    Brian Swan has posted the second part of his series looking at the difference between the MSSQL driver and the SQLSRV drivers for connecting to SQL Server databases from PHP (part one can be found here). He gets a bit more detailed in this second post.

    I'm aiming to provide a high-level comparison that you might use if you were considering moving to the SQLSRV extension, but I think there is also some interesting information if you are just curious about the differences. [...] In cases where a short note wasn't enough (and there were several of these), I've provided relevant links to topics in the SQLSRV documentation.

    He talks about things that one offers that the other doesn't, like prepared statements (sqlsrv) and working with stored procedures (mssql). He also mentions error handlng, persistent connections and scrollable cursors in sqlsrv. Finally he gets into a one-to-one function comparison of the two drivers with the sqlsrv function list coming up a bit short compared to the features of the more recend (and well-supported) mssql driver.

    2010-03-12(金)

    23:14 Phil Sturgeon's Blog: CodeIgniter 2.0: Everything you need to know »PHPDeveloper.org

    Phil Sturgeon has posted a look ahead at everything you need to know about the next version of the popular CodeIgniter framework, version 2.0.

    It has been 6 months since the last CodeIgniter minor update and 18 months since the last major update. Through all this time we were given no information about the next release of CodeIgniter, but finally 2.0 is on the way.

    Because of the Ellis Labs move to Mercurial for its version control system (and BitBucket for the repository), it allows for a more "social coding" environment where it's easier for developers to just fork and contribute. Other major changes for this upcoming version include the fact that PHP4 support will officially be deprecated, driver libraries, application "packages", a smaller reserved controller name list and the dismissal of plugins.

    Check out the Changelog for more detailed information as things are updated.

    22:38 Solar 1.0.0 Stable Released - Paul M. Jones »Planet PHP
    Yesterday, I announced the release of the 1.0.0 stable version of the Solar Framework for PHP on our mailing list. (I tagged the release four days ago on Monday, but wanted to time the announcement to go along with my Solar presentation at ConFoo.) You can see the change notes here. The highlights are: Added [...]
    22:23 WPの更新情報をサイトのトップに表示したい »Q&A掲示板
    お世話になります。 php 無知です。自分ではどうすればよいか見当もつきません サイトトップがメインで wordPressはサブフォルダーに入れています。 サイトトップに WPの更新情報をサイトのトップに表示したいのですが 方法が分かりません。 トップページに WordPreesの 更新情報を入れる場合 どういうコードにすればいいのでしょうか? <!--最近のエントリーエリア--> <div class="menu-mtwp"> <div class="title"><p>最近のエントリー</p></div>   <ul>    <?php   get_archives ( ' postbypost ' ,  10 ) ;  ?>   </ul> </div> <!--/最近のエントリーエリア--> よろしくお願いいたします。
    21:30 Query profiling »php|a news
    Open PHP MyProfiler could be the answer for your MySQL profiling needs.
    21:15 Future of PHP 6 - Johannes Schlüter »Planet PHP

    Yesterday was a quite thrilling day for the PHP development team and led to some imprecise news articles so let's take a look at what happened: Over the last months many of the core contributors agreed that the current approach to bring Unicode into PHP's engine wasn't the right approach and a good thing would be to rethink it from the start. By a provocative move of one contributor the stalled situation got some more movement and Rasmus declared the current implementation to be discontinued to restart.

    The past

    When the foundation of what should have become PHP 6 was created a decision was made to use UTF-16 as internal encoding for "everything" inside the engine. The choice for UTF-16 was made due to the fact that PHP 6 would use the ICU library which is focused on offering UTF-16 string functions. By using UTF-16 as default encoding we'd have to convert the script code and all data passed from or to the script (request data, database results, output, ...) from another encoding, usually UTF-8, to UTF-16 or back. The need for conversion doesn't only require CPU time and more memory (a UTF-16 string takes double memory of a UTF-8 string in many cases) but makes the implementation rather complex as we always have to figure out which encoding was the right one for a given situation. From the userspace point of view the implementation brought some backwards compatibility breaks which would require manual review of the code. These all are pains for a very small gain for many users where many would be happy about a tighter integration of some mbstring-like functionality. This all led to a situation for many contributors not willing to use "trunk" as their main development tree but either develop using the stable 5.2/5.3 trees or refuse to do development at all.

    The present

    Yesterday the stagnation created by the situation has been resolved and it was decided that our trunk in svn will be based on 5.3 and we'll merge features from the old trunk and new features there so that 5.3 will be a true stable branch. The EOL for 5.2 has not yet been defined but I suggest you to really migrate over to 5.3, which usually can be done with very little work, as soon as possible.

    The future

    Right now we're starting different discussions to see what kind of Unicode support we really want. Many contributors react positive on a proposed "string class" which wraps string operations in Unicode and binary forms without going deep in the engine. In my opinion such an approach might also be a way to solve some of the often criticized inconsistencies in PHP's string APIs without the need to break old code. (new code uses the new class, old code the old functions) But that idea is far from a proper proposal or even the implementation, current status is about refocusing the development and get the requirement and design discussions going. By that it's a bit early to decide whether the next version of PHP will be called PHP 5.4, PHP 6 or maybe even PHP 7.

    PHP is alive and kicking!

    17:51 Re: レコードに対するアクセスコントロールについて教えてください »CakePHP Users in Japan
    単純にユーザはユーザレコードのみ、管理者は全部、ということであれば、Userモデル内にadminフラグを用意して、それで管理者判定してみてはいかがでしょう?
    17:20 Re: ajaxリクエストの判定 »CakePHP Users in Japan
    開発が忙しくこのトピックのことを失念しておりました。
    申し訳ないです。

    ご提示いただいた内容も試した記憶はあるのですが、今となっては
    確認出来ない状態です。(開発が進んでしまったので)

    このトピックは閉じます。
    ありがとう御座いました。
    16:12 New Server - Andrew Hill »Planet PHP

    I’ve dumped the old hosting provider, and move the www.fornax.net server to Slicehost. So far, their service and support has been excellent!

    Hopefully, everything was migrated across correctly, and all of the RSS feeds still work. Apologies in advance if this post ends up anywhere it should not — please let me know if that’s the case and I’ll be happy to fix it!

    15:00 In Defense of Development Practices - Brandon Savage »Planet PHP
    On Tuesday, Marco Tabini told us that we were doing it all wrong. He makes some fantastic points about software development overall, and about the state of our profession. This article’s point isn’t to be a rebuttal, but a corollary to what he had to say.’t Marco is right: every one of us is “doing it [...]
    14:46 レコードに対するアクセスコントロールについて教えてください »CakePHP Users in Japan
    初めて投稿しますCakephp初心者です。

    データベースの各レコードに対するアクセスコントロールについて教えてください

    以下のような構造のテーブル、レコードがあると仮定します。

    テーブル名:reports
    14:04 ラジオボタンでのデータ保持 »Q&A掲示板
    「戻る」ボタンでPOSTされてくるのですが、 この選択リストをラジオボタンにするにはどんなソースになりますか? どなたかよろしく教えてください。 <?php include ( " ../x_style.php " ) ; ?>   <HTML> <HEAD> <TITLE>サンプル1</TITLE> </HEAD>   <?=   $style [ " BODY " ]   ?> <?=   $style [ " TABLE_S " ]   ?>   <center>お問い合わせ用フォーム</center> <?=   $style [ " HR " ]   ?> <FORM method="POST" action="sendmail.php">   <BODY> <BR><BR> 東京23区 <?php   $ku  =  array ( " 千代田区 " , " 中央区 " , " 港区 " , " 新宿区 " , " 文京区 " , " 台東区 " , " 墨田区 " , " 江東区 " , " 品川区 " , " 目黒区 " , " 大田区 " , " 世田谷区 " , " 渋谷区 " , " 中野区 " , " 杉並区 " , " 豊島区 " , " 北区 " , " 荒川区 " , " 板橋区 " , " 練馬区 " , " 足立区 " , " 葛飾区 " , " 江戸川区 " ) ;   echo   " <select name= \" 23区 \" > " ;   foreach   ( $ku   as   $key  =>  $var )   {      if   ( $var  ==  $_POST [ " 23区 " ])   {      echo   " <option selected> " . $var . " </option> " . " \n " ;      }   else   {      echo   " <option> " . $var . " </option> " . " \n " ;       }   }   echo   " </select> " ; ?> <BR><BR>       <INPUT type="submit" value="送信する"></FORM><BR>   [1]<a href=../index.php accesskey=1>戻る</a> <?=   $style [ " HR " ]   ?> <?=   $style [ " FOOT " ]   ?> <?=   $style [ " TABLE_E " ]   ?> </BODY> </HTML>
    13:02 Re: RewriteRuleによるマルチドメイン環境化での動作 »CakePHP Users in Japan
    反応が遅くなりまして申し訳ありません。

    >hiromi2424 様

    教えていただいた方法で無事動かすことができました!
    ありがとうございます!

    また、var_dump()についてもご指摘いただきありがとうございます。
    今後の参考にさせていただきたいと思います。
    06:37 Firefox Personas, WordPress-style »WordPress Development Blog
    We recommend open source software whenever we can, and the Firefox browser from Mozilla is one of our favorites. Firefox 3.6 recently came out with persona support, allowing users to skin their browsers with favorite designs and brands. WordPress users everywhere seem to love the W symbol (at WordCamps it shows up on everything from [...]
    05:37 選択リストのforeach »Q&A掲示板
    アンケートや問い合わせ用のフォームです。 選択リストをforeach文で書きましたが、ユーザーが選択したデータを戻るを押したときに、そのデータを保持したままにしたいのですがうまくいきません。 selectedを使用したもので回答いただけたらと思います。 初心者ですがよろしくお願いします。 <?php include ( " ../x_style.php " ) ; ?>   <HTML> <HEAD> <TITLE>サンプル1</TITLE> </HEAD>   <?=   $style [ " BODY " ]   ?> <?=   $style [ " TABLE_S " ]   ?>   <center>お問い合わせ用フォーム</center> <?=   $style [ " HR " ]   ?> <FORM method="POST" action="sendmail.php">   <BODY>   <?php   $shumi  =  array ( " 釣り " , " アウトドア " , " バイク " , " ドライブ " , " 散歩 " , " 特になし " ) ;   echo   " <select name= \" 趣味 \" > " ;   foreach   ( $shumi   as   $key  =>  $var )   {      echo   " <option> " . $var . " </option> " ;   }   echo   " </select> " ;       ?>       <INPUT type="submit" value="送信する"></FORM><BR>   [1]<a href=../index.php accesskey=1>戻る</a> <?=   $style [ " HR " ]   ?> <?=   $style [ " FOOT " ]   ?> <?=   $style [ " TABLE_E " ]   ?> </BODY> </HTML>
    05:30 Zend Framework 2.0 Taking Shape »php|a news
    There's been lots of buzz about Zend Framework 2.0 recently, and for good reason: the feature list is truly kick-ass. With dozens of proposed changes, the second iteration of the web's most popular framework is looking to be considerably better, more efficient and easier to use than the first, while still offering the functionality that framework users have come to expect.
    03:30 Why TDD is based on testing first »php|a news
    Test-Driven Development is a test-first approach, and it could never be different. The advantages of test-first outweigh the time spent writing tests.
    02:06 php|architect: Programming: you're doing it wrong »PHPDeveloper.org

    In an opinion piece posted to the php|architect site Marco Tabini suggests that we (as developers) are doing it wrong as we move further and further away from the pragmatic side of programming into the abstract.

    No matter how advanced the techniques that we use, there is always something that we could be doing better. [...] Which one is right? The real problem is that the answer to that question is, "yes." That's because it lacks a specific context in which it can be inserted.

    He suggests that, in our quest to figure out what the perfect case for any situation, we stop focusing on the practicality of writing applications to accomplish goals. Sometimes it's not about getting the right theory behind the code - sometimes it's just doing it.

    01:55 Module Bootstraps in Zend Framework: Do's and Don'ts - Matthew Weier O'Phinney »Planet PHP

    I see a number of questions regularly about module bootstraps in Zend Framework, and decided it was time to write a post about them finally.

    In Zend Framework 1.8.0, we added Zend_Application, which is intended to (a) formalize the bootstrapping process, and (b) make it re-usable. One aspect of it was to allow bootstrapping of individual application modules -- which are discrete collections of controllers, views, and models.

    The most common question I get regarding module bootstraps is:

    Why are all module bootstraps run on every request, and not just the one for the requested module?

    To answer that question, first I need to provide some background.


    Continue reading "Module Bootstraps in Zend Framework: Do's and Don'ts"
    01:23 Brian Moon's Blog: PHP command line progress bar »PHPDeveloper.org

    Brian Moon has a quick post that links to a but of code that gives you a progress bar for the command line that's flexible enough to be used in an number of situations.

    Was just looking through some code and came across this function I wrote some time ago. If you do a lot of your processing scripts in PHP like we do, you probably need to know what is going on sometimes. So, I made a progress bar for use on the cli. I thought I would share it.

    You can see a demo of it here (screencast) or just download the code. Comments on the post also point out the PEAR Console_Progressbar package and the ez Components class for creating a more advanced progress bar.

    00:15 The Open Source Way »php|a news
    Red Hat has created the basis of a book on open source communities, and it will be completed with the very approach proposed in it.

    2010-03-11(木)