|
Sponsored Link
|
Ralph Schindler has put together a new post for his blog about some of the best practices for using exceptions in PHP 5.3 - specifically dealing with some of the new functionality that comes with this latest PHP version.Exception handling in PHP is not a new feature by any stretch. In this article, we'll discuss two new features in PHP 5.3 based around exceptions. The first is nested exceptions and the second is a new set of exception types offered by the SPL extension (which is now a core extension of...
On his OTN blog today Chris Jones announces the release of the latest Oracle database and Instant Client libraries (11.2.0.2) for the linux OS:The Oracle 11.2.0.2 Instant Client libraries are now available on Linux x86 and x86_64 platforms from the Instant Client home page. And they'll soon be uploaded on ULN for customers with Oracle Linux support to install via the update server. If you are one of the (not so?) few users of command line PHP then you might want to grab the new client because it has...
On his blog today Court Ewing has posted a tutorial about a different approach to merging strings while formatting them at the same time - using sprintf and printf for more than just a single-shot output.I do it, you do it, everyone does it! We all concatenate. If you're simply combining a few variables or constants together, concatenation is the way to go. After all, it is quick and easy, and who can complain about that? However, concatenation does have two serious drawbacks: any sort of string...
I'm very excited by a new virtual event which is coming up, and at which I have been invited to speak. This is Day Camp 4 Developers, an event aimed at developers of all disciplines and focussing on the soft skills that sometimes we miss in our pursuit of technical excellence. I'll be giving my talk "Open Source Your Career", which looks at how being involved in open source outside of work can improve our professional development. The event is on November 6th, and you can buy tickets here.
There are a...
Here's what was popular in the PHP community one year ago today:NETTUTS.com: Getting Clean With PHP
Derek Allard's Blog: Getting changes made to the CodeIgniter manual
Blue Parabola Blog: Magento Feature Analysis Series, Part 10: Checkout Offering
Think Vitamin Blog: How to Debug in PHP
Hari KT's Blog: A simple Blog using Zend framework 1.9
Jani Hartikainen's Blog: What is a null object, and when are they useful?
PHP.net: PHP 5.2.11 Released!
Ibuildings techPortal: Grokking the REST Architecture
Blue...
Die Kenntnis um Design Patterns (Entwurfsmuster) sollte zum Werkzeugkasten eines jeden Entwicklers gehAśren, dem sauberes und wirtschaftliches Arbeiten am Herzen liegt. Die meisten Entwickler kennen und setzten zumindest die gA¤ngigen Entwurfsmuster intuitiv ein. Kein Wunder, zeigen doch aktuelle Frameworks (z. B. Zend Framework) wie wunderbar durchdachte Software-Architektur basierend auf Design Patterns funktionieren kann und wie generisch die Komponenten aufgebaut werden kAśnnen. Dies fAśrdert sowohl...
The Oracle 11.2.0.2 Instant Client libraries are now available on Linux x86 and x86_64 platforms from the Instant Client home page. And they'll soon be uploaded on ULN for customers with Oracle Linux support to install via the update server....
I do it, you do it, everyone does it! We all concatenate. If you're simply combining a few variables or constants together, concatenation is the way to go. After all, it is quick and easy, and who can complain about that? However, concatenation does have two serious drawbacks: any sort of string formatting must be done manually, and it is difficult to visualize the "goal" string when it is sufficiently complex.
Fortunately, the PHP core offers sprintf/printf which can greatly improve the readability of...
Every new feature added to the PHP runtime creates an exponential number of ways developers can use and abuse that new feature-set. However, it's not until developers have had that chance that some agreed-upon good usage and bad usage cases start to emerge. Once they do emerge, we can finally start to classify them as best or worst practices.
Exception handling in PHP is not a new feature by any stretch. In this article, we'll discuss two new features in PHP 5.3 based around exceptions. The first is...
I have found that using global sequence for all table is a very good practice. You can mix data ids from all tables in a single place (e.g. search engine index) and do not worry about collisions. Unfortunately MySQL doesn't support sequences and we have to emulate such functional. I will show you how to make it for your database and integrate this solution using Zend_Db.
Following up on his previous post about transaction-level isolation with the SQL Server driver, Brian Swan has this new look at an additional option - snapshot isolation.I'll cover the snapshot isolation level in this post, and (as in my earlier post) I'll look at what happens at the database level when using a particular isolation level (rather than concentrating on PHP data access code).He introduces snapshots for those not familiar with them - the idea of making a set of data available to other users...
On PHPBuilder.com today there's a new tutorial from Jason Gilmore about using the action helpers in the Zend Framework to help reduce the amount of redundant code spread all over your application.Embracing a framework-driven approach to Web development enhances productivity in many ways, not the least of which is the ability to stay DRY (Don't Repeat Yourself). Eliminating the redundant reuse of code throughout a Web application will greatly improve your ability to effectively test and later refactor...
On NETTUTS.com today there's a new tutorial introducing you to one of the more well-established templating tools for PHP-based applications - Smarty. It provides abstraction between your data and the output of the site, making is simpler to maintain in the long run.Smarty is a PHP-based templating engine/framework. It allows you to further separate your business logic from its visualization, by removing as much PHP code as possible away from your views. Some developers and frameworks prefer not to use a...
On the WoorkUp.com blog today Luiz Eduardo has posted a new tutorial about how you can create and add a "Google Instant" type of search to your site. The technique uses a combination of an HTML and Javascript frontend (jQuery) and a PHP backend.
This technology is not available for every webmaster in your own page yet, however, we can get really good results with php and jQuery, allowing everyone to create your own version of instant search.
We are going to create now the simplest code, in order to learn...
Kevin Schroeder has posted excerpts from the sixth and seventh chapters from his "You Want To Do WHAT With PHP?" book.Chapter 6 focuses on asynchronous processing and the excerpt talks about doing it with a little big of encryption on the side.In the excerpt from Chapter 7 he looks at a more structured way to access files rather than just the random fopen or file_get_contents. There's a code example in this one showing how to get the header information off of a file for things like file type, last...
PDF-print
Dwords
PDF print
32bit File Stats
Customizable CAPTCHA
Sparql Query Builder
Phones Complete class
Cache wrapper
ZEND_EPS_PUTTY
kart-trie
EasterDateCalculator
Colorful variable dump
Easter Date Calculator
User-Checker
Security
Less.php
There was a pretty interesting snippet in Engadget's coverage of yesterday's Nokia World keynote:
"By 2013 800 million people will be using GPS-enabled devices. Soon, everything on the Internet will have a location coordinate. This is a space we intend to own."
Indeed, this is a quite possible future, and one for which we with Midgard are quite well prepared for. Many smartphone browsers (and even desktops) nowadays can transmit their location to web services, more and more geotagged information is being...
Nearly two years ago back in November 2008 I wrote about the state of annotations in the PHP world. Today I want to take the chance to revisit this and find out if annotations are still present and used, or if they are not.Review of old candidates
Of those which I described two years ago, AttributeReader saw no further development, so I don't consider it as an option any more. Addendum has seen new releases, the last one in October last year. The repository has seen commits recently in June this year, so...
On the TechChorus blog today Sudheer has posted his answer to a question posed to him on LinkedIn - "What is your definition of a 'true PHP developer'?" His short answer? The question is wrong. Here's the long answer:A true PHP developer is a programmer who knows PHP. A false PHP developer is someone who doesn't know PHP. That's the closest correct answer I can think of. I think, Jamie wants to ask, "what's your definition of a good PHP developer?". There is no correct answer to the question. All, you...
On the Zend Developer Zone there's a new announcement about this month's Bug Hunt Days for the Zend Framework happening Thursday the 16th through Saturday the 18th.Yep, it's the third week of the month again - and you know what that means: Zend Framework Monthly Bughunt! This Thursday, Friday and Saturday of September (the 16th, 17th and 18th 2010), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month, we organize the community to help reduce the number of open...
|
|