|
Sponsored Link
|
New on the php|architect site today, there's a post from Cal Evans with his opinion of the PHP language - "it's not a Swiss Army Knife, quit calling it that."I've heard a lot of people compare PHP to a Swiss Army Knife. You know the ones, 5 blades, a corkscrew, a saw...and the obligatory toothpick that you will lose so you might as well take it out now and just throw it away. Why anyone would consider PHP to be like this is beyond me. [...] A Swiss Army Knife undergoes a lot of design work before it is...
On PHPMaster.com today there's a new tutorial introducing you to the array handling features in PHP - sorting, slicing and more.
In my previous article on PHP arrays I suggested a number of things that are tables and therefore can also be expressed as arrays. In this article I'll use a pack of playing cards to explore some of the built-in array functions most often needed by PHP programmers.
To highlight some of the array-handling functions PHP offers, I'll be using some components of Buraco - a game...
In searching for a solution to a CSS problem I had I stumbled over anotherA interesting problem, similar to mine. Most people seemed to agree that it
was impossible to do in pure CSS. The effect those people were afterA is commonly used in magazines where text with a background color is putA over an image. A simple effect hard to achieve.
One solution was to surround each line of text using styled span elements. AnotherA solution usedA a€¯a teeny weeny jquerya€¯ to solve the problem. I'm sure it's a...
Latest PECL Releases:
varnish 0.9.2
yaf 2.1.3
timezonedb 2011.12
Uh, uha€¦ about a year ago Mayflower OpenSource Labs released the mysqlnd user handler plugin (PECL/mysqlnd_uh). The extension lets you extend and replace mysqlnd internal function calls with PHP. Uh, uha€¦ internal mysqlnd exported to user space? Who cares as long as it does the trick?! Let me ...
Uh, uha€¦ about a year ago Mayflower OpenSource Labs released the mysqlnd user handler plugin (PECL/mysqlnd_uh). The extension lets you extend and replace mysqlnd internal function calls with PHP. Uh, uha€¦ mysqlnd internals exported to user space? Who cares as long as it does the trick?! Let me show you seven lines of PHP code to monitor all queries issued by any PHP MySQL application using any PHP MySQL extension (mysql, mysqli, PDO_MySQL) compiled to use the mysqlnd library.
query_monitor.php...
The PHP North West User Group ran it's 4th (and largest yet!) PHP conference - PHPNW11 in Manchester last weekend.
Once again there were three main tracks to the conference, a total of 15 speakers from both near and wide to choose from. New this year was the fourth track - the Unconference (perhaps lightning talks would be a better description tbh) organised by Elizabeth Naramore. Unfortunately, it was too dark in the Unconference to shoot handheld, but hopefully Rob Allen snagged some of the speakers...
Some time ago, inspired by the #linktuesday initiative Lorna started, I built this relatively simple website which I put on LinkTuesday.com. It fetches tweets from Twitter with the #linktuesday hashtag, groups them together and then displays them in various rankings. Insanely simple idea, insanely simple execution.
As mentioned in this new post to her blog Lineke Kerckhoffs-Willems and Kim Rowan are starting a new project to provide audio and video recordings of tutorials specifically targeted towards PHP developers - ProTalk.We feel that video and audio recordings have been an underrated medium for too long. We believe they actually provide an excellent vehicle for getting your ideas across and can be a more effective means of learning for beginners and professionals alike than the written word. Slides are great...
On the php|architect site today there's an opinion piece from Marco Tabini with his thoughts on why software fails - not why the project itself fails, but why the software fails to be useful.This is a much more common problem than engineers and architects are willing to admit. Far too often I see someone in charge of writing a piece software worry about how a product works without paying so much as a passing thought to whether it actually works the way people expect it to. The truth is that we are, by...
Looks as if we have the next member in the "I want to become Caliph instead of the Caliph" club: PHPreboot
This is just a braindump of thoughts on the various bullet points and examples on the projects home page (but i don't think it's worth any more time to analyze it and comment on it either):
less $, less ';' like in javascript
Not sure whether this is really an improvement, while $ and ; are not really necessary from a parsers (or lazy typers) point of view they do carry some context information...
I've finally taken the plunge and moved the SabreDAV source from Google code to GitHub.
The main reason is that I'm hoping that people are more likely to fork and contribute. This was possible as well on googlecode, but I think people had a bit more trouble getting used to the feature.Mercurial is still the best source control system, but I feel switching to Git was worth it, solely for GitHub.
You can find the source at https://github.com/evert/SabreDAV.
On PHPMaster.com today there's a new tutorial about using the Zend_Pdf component of the Zend Framework to generate invoices from the billing data in your application.The PDF format is currently the most used format to exchange documents. If you provide your website users with printable versions of invoices, event tickets and other similar documents, you'll most likely want to generate them as PDFs on the fly. In this article you will see how you can use Zend_Pdf to auto-generate PDF invoices.The concept...
In a recent post to his blog Christian Schaefer shows how to use the Goutte tool (a web scraper) to pull information from one site and use it in another Silex-powered one. His tutorial uses a custom service provider for the integration.Since I discovered the free Facebook App hosting by heroku I keep wanting to make something useful out of it. So I thought about a small service app. Without going into details yet about its nature there was one immediate problem to be solved. How to get hold of the data?...
Latest PEAR Releases:
Net_NNTP 1.5.0RC2
The PHP North West User Group ran it's 4th (and largest yet!) PHP conference - PHPNW11 in Manchester last weekend.
New this year was Tutorial Day: the opportunity to spend half a day or more in hands-on tutorials getting into the nitty-gritty of useful subjects such as Zend Framework 2, Security, Drupal, Web Services and Component Architectures.
These are my photos from the Tutorial Day.
The jquery.paginate.js plugin allows you to retrieve a large data set in JSON format from a server script and load the data into a unordered list (or table) with client side pagination enabled. To use this plugin you need to:
Include jquery.min.js and jquery.paginate.min.js in your document:
Include a small css to skin the navigation links:
a.disabled {
text-decoration: none;
color: black;
cursor: default;
}
Define an ID on the element you want to paginate, for example: a€olistitemsa€¯. If you have a...
Previously I was writing about combining Symfony2 and mysqlnd to get more statistics on what is going on below the surface in the database communication when using a Symfony2 application via the Symfony2 profiler. Now that's not all that can be done and I gave some ideas for extending this. One idea was adding mysqlnd_qc support. mysqlnd_qc is the client side query cache plugin for mysqlnd. This provides a client-side cache for query results transparently without changing the application.
<span...
In a new post to Stephen Colebourne's blog today, there's some bad news for developers of software and OSes in general - the timezone database that most software uses is down due to a copyright struggle with a company named Astrolabe, Inc.. How does this relate to PHP? It's the same database the language uses to define its timezones as a part of the DateTime functionality.The time-zone database (sometimes referred to as the Olson database) is the computing world's principle source of time-zone data. It...
On the WebInOne blog there's a post about doing some date validation in CodeIgniter 2 forms using the "set_validation" method.I wrote a tutorial here about the CI date. At that post I used the HTML for the input of date. Sometime our client can want to use text box for the date input. We need the validation for this date. I have found this code from here. It is for CI 1.7.* and PHP 5.2.*. So I change some code for the CI 2.0.* and PHP 5.3.*.There's some code snippets included in the post showing how to...
|
|