Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
PHP's two-pass compiler
Jan 28, 2009 @ 18:06:34

While working on an issue with debugging a script of his via XDebug, Derick Rethans was reminded of something that is an integral part of the PHP language - its two phase compiler.

During the first pass, it will find out to which opcode it needs to jump in the jump instructions. However, the PHP engine (and Xdebug) expects a memory address to jump to while executing your script. In the second pass, the compiler will then go over the generated opcodes and calculate the memory address to jump to from the jumps to opcode numbers.

Because of the way that XDebug was handling the checks (with the user-defined error handler) and how the opcodes inside of PHP are handled, the user-defined handler happened in between the first and second phases and the latter run couldn't find the resources it was looking for, thus the crash.

tagged: two phase compiler xdebux vld userdefined error handler opcode resource

Link:

Community News:
CakePHP Workshop - Raleigh, NC (Sept 6th-7th)
Jul 30, 2008 @ 17:57:59

A new post to the Debuggable blog points out an upcoming conference for all of the CakePHP-heads out there - the CakePHP Workshop happening in Raleigh, NC September 6th and 7th.

Felix Geisendorfer notes:

Tim and I are very thrilled to announce the very first two-day workshop for everybody who is interested in mastering the CakePHP framework. The event is a collaboration between Debuggable Limited and the Cake Software foundation.

The cost for the event is $600 USD for a normal admission and $500 USD for a student admission. Speakers will include Garrett Woodworth, Nate Abele and Felix and Tim (of the Debuggable blog). The post includes a "what to expect" for attendees and a complete listing of the talks for each day and descriptions of each session.

Signup now to reserve your spot.

tagged: cakephp workshop raleigh nc september two day

Link:

Inside Open Source:
Two New Articles (Date/Time & Services_Google)
Jul 11, 2006 @ 14:07:23

Via Codewalkers.com today, we learn about two new articles from the APress "Inside Open Source" site - one dealing with interfacing the Google API with the PEAR SOAP extension and the other dealing with the date/time functionality of PHP. Both are excerpts from two of APress' books.

The first article, Using the Google API from PEAR, demonstrates how to install the Services_Google PEAR package and use it in your code. They give three examples of its flexibility with three different kinds of requests to the API - a spelling check, grabbing the URL for Google's cached page of a site, and of course, searching through Google's resource to locate matching websites.

Article number two, Displaying Times and Dates in Other Languages with PHP, looks generally at the functionality of PHP to work with and display dates and times in multiple formats. There's a few code examples and a long list of the arguments you can pass in to format the output string just how you'd like it.

tagged: apress tutorial two article date time soap api services_google pear apress tutorial two article date time soap api services_google pear

Link:

Inside Open Source:
Two New Articles (Date/Time & Services_Google)
Jul 11, 2006 @ 14:07:23

Via Codewalkers.com today, we learn about two new articles from the APress "Inside Open Source" site - one dealing with interfacing the Google API with the PEAR SOAP extension and the other dealing with the date/time functionality of PHP. Both are excerpts from two of APress' books.

The first article, Using the Google API from PEAR, demonstrates how to install the Services_Google PEAR package and use it in your code. They give three examples of its flexibility with three different kinds of requests to the API - a spelling check, grabbing the URL for Google's cached page of a site, and of course, searching through Google's resource to locate matching websites.

Article number two, Displaying Times and Dates in Other Languages with PHP, looks generally at the functionality of PHP to work with and display dates and times in multiple formats. There's a few code examples and a long list of the arguments you can pass in to format the output string just how you'd like it.

tagged: apress tutorial two article date time soap api services_google pear apress tutorial two article date time soap api services_google pear

Link:

Davey Shafik's Blog:
php|tek Day 2
Apr 28, 2006 @ 18:24:15

Davey Shafik has updated his blog, Pixelated Dreams, today with his latest entry from this year's php|tek conference.

He mentions giving his second talk, "Migration to PHP 5.1", going well, and has links to both sets of slides:

There's also a brief note about the "Frameworks Panel Discussion" he attended (hosted by Marcus Whitney) and the success it was.

Davey also uploaded some new pictures to the php|tek photo stream for those that aren't able to attend.

tagged: phptek day two talks development migration framework panel phptek day two talks development migration framework panel

Link:

Davey Shafik's Blog:
php|tek Day 2
Apr 28, 2006 @ 18:24:15

Davey Shafik has updated his blog, Pixelated Dreams, today with his latest entry from this year's php|tek conference.

He mentions giving his second talk, "Migration to PHP 5.1", going well, and has links to both sets of slides:

There's also a brief note about the "Frameworks Panel Discussion" he attended (hosted by Marcus Whitney) and the success it was.

Davey also uploaded some new pictures to the php|tek photo stream for those that aren't able to attend.

tagged: phptek day two talks development migration framework panel phptek day two talks development migration framework panel

Link:

Community News:
SourceForge.net 2006 Community Choice Awards
Apr 06, 2006 @ 11:55:33

From the O'Reilly ONLamp.com site today, there's a release about the SourceForge.net 2006 Community Choice Awards winners , and two PHP-based projects have made the list.

From March 15th through the 17th, users within Sourceforge.net were able to nominate projects. From these initial nominations, the finalists were chosen and these choices were made available to the community for voting. The finalists included a range of Open Source solutions ranging from CRM and firewall solutions to anti-virus and Xbox Media Center innovations.

Final voting was conducted March 17 – 23, 2006, and the project winners were selected by voting within 13 key technology categories, plus “Best Overall” project. Nominations and voting were managed by the third-party research firm, Wilson Research.

The PHP projects that made the cut were:

  • phpMyAdmin in the "Database Project" and "SysAdmin Project" categories
  • A PHP PayPal API in the "Financial Project" section
tagged: community choice awards two projects phpmyadmin paypal api community choice awards two projects phpmyadmin paypal api

Link:

Community News:
SourceForge.net 2006 Community Choice Awards
Apr 06, 2006 @ 11:55:33

From the O'Reilly ONLamp.com site today, there's a release about the SourceForge.net 2006 Community Choice Awards winners , and two PHP-based projects have made the list.

From March 15th through the 17th, users within Sourceforge.net were able to nominate projects. From these initial nominations, the finalists were chosen and these choices were made available to the community for voting. The finalists included a range of Open Source solutions ranging from CRM and firewall solutions to anti-virus and Xbox Media Center innovations.

Final voting was conducted March 17 – 23, 2006, and the project winners were selected by voting within 13 key technology categories, plus “Best Overall” project. Nominations and voting were managed by the third-party research firm, Wilson Research.

The PHP projects that made the cut were:

  • phpMyAdmin in the "Database Project" and "SysAdmin Project" categories
  • A PHP PayPal API in the "Financial Project" section
tagged: community choice awards two projects phpmyadmin paypal api community choice awards two projects phpmyadmin paypal api

Link:

Zend Developer Zone:
Blueprint for PHP Applications - Bootstrapping (Part 2)
Apr 05, 2006 @ 12:40:52

The Jayson Minard continues his "Blueprint for PHP Applications" series on the Zend Developer Zend today in part two, a look at creating and setting up the "bootstrapper" file mentioned previously.

In Part 1 of this article I talked a lot about funneling. Sending every request to one PHP file that then controls the flow of the request into our application code. This one PHP file is called the "Bootstrapper" and deals with everything in common for every request our application receives. The bootstrapper can setup, configure and gift wrap everything that all pages have in common. It can make sure the include path is setup correctly, that the environment is configured correctly, all PHP settings are set, that common model objects are loaded, and that the front controller is invoked to begin your MVC processing.

If you setup the bootstrapper correctly your application code will be more manageable and consistent, along with being easier to write in the first place.

They focus on teh directory structure in this part, demonstrating the correct structure, how to set the .htaccess to coordinate with it, and the creation of a simple PHP file to handle all incoming requests.

tagged: zend framework bootstrapping part two directory structure zend framework bootstrapping part two directory structure

Link:

Zend Developer Zone:
Blueprint for PHP Applications - Bootstrapping (Part 2)
Apr 05, 2006 @ 12:40:52

The Jayson Minard continues his "Blueprint for PHP Applications" series on the Zend Developer Zend today in part two, a look at creating and setting up the "bootstrapper" file mentioned previously.

In Part 1 of this article I talked a lot about funneling. Sending every request to one PHP file that then controls the flow of the request into our application code. This one PHP file is called the "Bootstrapper" and deals with everything in common for every request our application receives. The bootstrapper can setup, configure and gift wrap everything that all pages have in common. It can make sure the include path is setup correctly, that the environment is configured correctly, all PHP settings are set, that common model objects are loaded, and that the front controller is invoked to begin your MVC processing.

If you setup the bootstrapper correctly your application code will be more manageable and consistent, along with being easier to write in the first place.

They focus on teh directory structure in this part, demonstrating the correct structure, how to set the .htaccess to coordinate with it, and the creation of a simple PHP file to handle all incoming requests.

tagged: zend framework bootstrapping part two directory structure zend framework bootstrapping part two directory structure

Link:


Trending Topics: