Rasmus Lerdorf has a new post to his blog sharing the results of some "investigative hacking" he did to see if making ZeroMQ and libevent work together was difficult. Thankfully, the answer was "not hard at all".While waiting for a connection in Frankfurt I had a quick look at what it would take to make ZeroMQ and libevent co-exist in PHP and it was actually quite easy. Well, easy after Mikko Koppanen added a way to get the underlying socket fd from the ZeroMQ PHP extension. To get this working, install...
In a recent post to his blog Stuart Herbert asks his readers where they get their Windows PHP binaries from - there's more than just windows.php.net out there after all.I'm currently working out installation instructions for phix on Microsoft Windows before my sessions at PHPNW 11 and ZendCon in October...and I need your help, because it has been many years now since I used Windows. If you do your PHP development using Windows on the desktop or laptop, where do you prefer to get your copy of PHP from?He...
While working on an application I ran across a huge bottleneck which I isolated down all the way to the use of the iconv_substr function. If you ever wonder which is better to use, this should help your decision:
Benchmark scriptA $str = str_repeat("foo",100000);$time = microtime(true);A iconv_substr($str,1000,90000,'UTF-8');A echo "iconv_substr: " . (microtime(true)-$time) . "\n";A $time = microtime(true);A mb_substr($str,1000,90000,'UTF-8');A echo "mb_substr: " . (microtime(true)-$time) . "\n";A $time...
Noupe.com has posted a list of what they consider some of the best web design and development podcasts out there ranging on topics from general web tech to specific topics like accessibility and critiques of website designs.Not long ago we had a post that discussed the role that podcasts have been playing in the design field. After which we were asked for a post that focused on more web design and development related podcasts for our readers. [...] We scoured the bountiful podcast offerings that the...
Brian Swan has a new post to his MSDN blog today about the release of the latest version (3.0 beta) of the SQL Server drivers for PHP. This new release includes three improvements - buffered queries, support for LocalDB and support for high availability/disaster recovery.A Community Technology Preview (a beta release) of v3.0 of the SQL Server Drivers for PHP was released today (see the announcement on the team blog). You can download it here: Download v3.0 of the SQL Server Drivers for PHP. [...] It's...
Here's what was popular in the PHP community one year ago today:PHP-Code.net: Securing PHP Applications Part II - Securing PHP code
Jack Slingerland's Blog: 24 PHP Dark Arts: Multi-Processing (Series)
Symfony News: Translation Component Now Avabilable (Symfony2)
Web Builder Zone: PHPUnit 3.5: easier asserting and mocking
Phil Sturgeon's Blog: Power dump() on your PHP applications
David Sklar's Blog: Fast Multiple String Replacement in PHP
Bradley Holt's Blog: Immutable Value Objects in PHP
Lorna...
While waiting for a connection in Frankfurt I had a quick look at what it would take to make ZeroMQ and libevent co-exist in PHP and it was actually quite easy. Well, easy after Mikko Koppanen added a way to get the underlying socket fd from the ZeroMQ PHP extension.
To get this working, install the PHP ZeroMQ extension and the PHP libevent extension.First, a little event-driven server that listens on loopback port 5555 and waits for 10 messages and then exits.
Server.php
getsockopt...
Quick note to say that the new version of the PHP ZeroMQ bindings (1.0.0) is available from the pear.zero.mq PEAR channel. This version has several new features, such as support for building against version 2.1+ or 3.x of ZeroMQ, including exposing the various new features of 3. It also allow retrieval of the ZMQ_FD file descriptor for use in external polls, supports PHP 5.4, and fixes various small bugs and issues.
However, there are some changes that will break backwards compatibility and so userland...
On PHPBuilder.com today there's a new tutorial helping you integrate weather data into your site with the help of the Services_Weather PEAR package.Regardless of whether you consider the weather to be an obsession or nuisance, there are plenty of opportunities to incorporate weather-related data into your Web application. The Services_Weather PEAR Package offers what is perhaps the easiest way to begin retrieving weather-related data.Included in the post are the commands you'll need to get the package...
The PHPSPCast has released their latest episode (Episode #8) talking about frameworks - what they are and if you should use them in your application development (Note: the podcast is in Portuguese).The team PHPSPCast finally manages to escape from their captivity and returns to discuss one of the most requested topics: Frameworks. What are frameworks and which of them pale in their work day every day? Let's discuss this issue on all aspects of a framework, advantages and disadvantages. So we will open...
In a new tutorial from the Script-Tutorials.com site, they introduce you to memcache, an external caching tool that can help speed up the performance of your application dramatically.Today we will talking about caching in PHP again. I will show you how you can use Memcache in PHP. We will prepare useful class for working with Memcache for us and several examples. Memcache itself providing procedural and object oriented interface to memcached, highly effective caching daemon, which was especially designed...
SitePoint' PHPMaster.com has a new tutorial posted today from Martin Psinas about some tactics to prevent cross-site request forgeries from happening in your PHP application. The article introduces key concepts of CSRF and how you can keep it from happening in your code.Cross-site request forgery (CSRF) is a common and serious exploit where a user is tricked into performing an action he didn't explicitly intend to do. This can happen when, for example, the user is logged in to one of his favorite...
Blurring the lines of the usual conference scene, Lorna Mitchell has posted about her experience at a Python conference as a PHP developer (and a speaker at that).A few weeks ago, while attending the delightful OggCamp, I was approached by someone asking me to speak at PyConUK. Well ... I'm a PHP developer, but as with most PHP developers, we just like good shiny tech and aren't religious about any particular language. So I instantly said yes and then started to worry what I was letting myself in for!She...
Ulf Wendel has a new post that compares the performance of a classic method for using the mysqlnd plugin in MySQL replication to mysqlnd_ms, the replication and load balancing plugin for the mysqlnd driver (that works with the mysql and mysqli functionality and is, as of this beta of PHP, the default driver for MySQL connections).Recently I was asked if PECL/mysqlnd_ms should be used to add MySQL replication support to a yet to be developed PHP application. The mysqlnd plugin, which supports all PHP...
The soon to be announced version 1.1.0-beta of the mysqlnd replication and load balancing plugin (PECL/mysqlnd_ms) for PHP introduces a new concept of filters to the plugin. Filters take a list of servers to pick one or more of it. Filters can be chained, similar command line tools. Imagine a future with a filter chain like: user_multi | roundrobin, table_partitioning | random_once, table_partitioning | adaptive_loadbalancer, a€¦ For example, user_multi | roundrobin will first invoke a callback and then...
User Roles
Mini HTML Helper
Oracle Connection Manager
Image-Resize
RetinaPost antispam and engagement
APIQL
Geo Tools
Last week I visited the Search Marketing Thursday, a small and interesting meeting here in the Netherlands. A presentation about the Google Panda update led me to think about the PHP forum at finalwebsites.com. The Panda update is about quality content which people like, read and mention to others. I checked some older forum posts [...]
Recently I was asked if PECL/mysqlnd_ms should be used to add MySQL replication support to a yet to be developed PHP application. The mysqlnd plugin, which supports all PHP MySQL extensions (PDO, mysqli, mysql), stood up against a classical, simple, proven and fast approach: one connection for reads, one ...
I'm currently working out installation instructions for phix on Microsoft Windows before my sessions at PHPNW 11 and ZendCon in October a€¦ and I need your help, because it has been many years now since I used Windows.
If you do your PHP development using Windows on the desktop or laptop, where do you prefer to get your copy of PHP from?
windows.php.net (and if so, which build?)
Microsoft Web Platform
XAMPP
WAMP
a€¦ or somewhere else entirely?
|
Latest PHP Tweets
|