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...
indieconf - the conference for independent web professionals - is fast approaching.A This year indieconf is on Saturday, November 19, in Raleigh, NC, and it will be a full day of learning from and networking with other freelance and independent web people.A Designers, developers and everyone in between are welcome to join us!
This year sees some new speakers joining us - Michael Marshall, Laura Creekmore, Pepper Oldziey just to name a few, and some of our friends from year one are back for year two,...
Anson Cheung has a new post sharing eight things to change on your PHP install to help make things a bit more secure (from a platform standpoint, not in the code).Obviously, PHP+ MySQL + Apache is a popular web technology.Its components are powerful, versatile and Free. However, the default settings ship with PHP is not suitable for production sites. Here, it is a check list of settings that are intended to harden the default PHP installation.The list of eight includes things like:
Disable Register...
Fabien Potencier (of the Symfony framework project) has posted the results of a security audit that was performed on the framework by SektionEins.The Symfony2 core team takes security issues very seriously; we have a dedicated procedure to report such issues, and the framework itself tries to give the developer all the features needed to secure his code easily. Thanks to our successful community donation drive, SektionEins performed a security audit on the Symfony2 code earlier this year. The audit is...
Abou Kone has a recent post to his blog showing the CakePHP users out there how to set up JSON output for your actions in a few simple steps.Working on setting up the Rest Plugin for CakePHP helped me realize that i wanted to set up JSON output for some of my actions. This way, if you request for example "www.yourapp.com/app/post/view/1.json" in the url, you will be returned the JSON post data. This excellent tutorial here will help you achieve it.Changes include updates to configuration for routing,...
Popular posts from PHPDeveloper.org for the past week:Johannes Schlüter's Blog: MySQL Query Analyzer and PHP
PHPClasses.org: Lately in PHP Episode 16 - APC in PHP, MODX CMS, Top Developers
Evert Pot's Blog: iconv_substr vs mbstring_substr
PHPMaster.com: Introducing Superglobals
Reddit.com: In Web Development is it better to be a Expert or All-arounder?
Community News: CodeWorks 2011 Early Bird Pricing Ends Today
ZendCasts.com: Fun with Phar
Anson Cheung's Blog: Optimize Web Site Performance by using...
|
Latest PHP Tweets
|