PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 21 to 40 of 219

ZeroMQ + libevent in PHP

ZeroMQ + libevent in PHP
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...


PHP ZMQ Extension Version 1.0.0

PHP ZMQ Extension Version 1.0.0
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...

PHPBuilder.com: Incorporate Weather Data into Your PHP Web Apps

PHPBuilder.com: Incorporate Weather Data into Your PHP Web Apps
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...

PHPSPCast: Episode #8 - Frameworks - What are they and why use them?

PHPSPCast: Episode #8 - Frameworks - What are they and why use them?
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...

Script-Tutorials.com: How to use Memcache with PHP

Script-Tutorials.com: How to use Memcache with PHP
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...

PHPMaster.com: Preventing Cross-Site Request Forgeries

PHPMaster.com: Preventing Cross-Site Request Forgeries
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...

Lorna Mitchell's Blog: PHP Developer at a Python Conference

Lorna Mitchell's Blog: PHP Developer at a Python Conference
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's Blog: PECL/mysqlnd_ms compared to a classic

Ulf Wendel's Blog: PECL/mysqlnd_ms compared to a classic
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...

Replication plugin A filter A conquer = 1.1.0 coming

Replication plugin A filter A conquer = 1.1.0 coming
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...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
User Roles Mini HTML Helper Oracle Connection Manager Image-Resize RetinaPost antispam and engagement APIQL Geo Tools

Use Google Analytics for your Google Panda optimizations

Use Google Analytics for your Google Panda optimizations
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 [...]

PECL/mysqlnd_ms compared to a classic

PECL/mysqlnd_ms compared to a classic
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 ...

Where Do You Get Your PHP From For Windows?

Where Do You Get Your PHP From For Windows?
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?

Pim Elshoff's Blog: My maiden voyage (Pfcongres 2011)

Pim Elshoff's Blog: My maiden voyage (Pfcongres 2011)
Pim Elshoff has a new post to his blog about his experience at this year's PfCongres event (joining other summaries from a speaker and another attendee).Saturday September 17th, starting at about 9am, the conference hosted a series of talks concerning PHP and related web technologies. Topics varied from tech updates to PHP internals to CSS. [...] I enjoyed most of the talks, even though I didn't learn too much. It was a good chance to meet people and talk about our mutual interests, problems and of...

Chris Jones' Blog: Scripting Language Related Sessions at Oracle OpenWorld and JavaOne, October 2011

Chris Jones' Blog: Scripting Language Related Sessions at Oracle OpenWorld and JavaOne, October 2011
Chris Jones has a new post today sharing a schedule of a few scripting-related sessions coming up at Oracle's OpenWorld and JavaOne conferences.Oracle OpenWorld and JavaOne conferences are happening in San Francisco next week. It will be a busy and exciting time.The PHP-related sessions are at OpenWorld this year including: High-Performance Web Applications with C/C++/PHP/Python Develop and Deploy High-Performance Web 2.0 PHP, Ruby, or Python Applications PHP, Ruby, Python, and Perl: Develop and Deploy...

Agile Toolkit Blog: How to Earn Money with Open Source?

Agile Toolkit Blog: How to Earn Money with Open Source?
On the Agile Toolkit blog today there's and interesting article with a slightly misleading title - "How to Earn Money with Open Source?" It talks less about strategies of how to monetize your open source project and more about how other projects are doing it and why a good core team is important.OpenSource is an amazing phenomena, but how safe open-source projects are? Would commercial project be safer over the community-supported project? Frameworks can't exist without their core team and In this...

PHP.net: PHP 5.4 beta1 released

PHP.net: PHP 5.4 beta1 released
PHP.net has officially announced the release of the first official beta of the PHP 5.4.x series today - PHP 5.4 beta1.The PHP development team is proud to announce the first beta release of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviors. Windows binaries can be downloaded from the Windows QA site.Features added in this beta include several bug fixes, the addition of a callable typehint, a switch to timezone guessing (UTC is assumed if not set) and the...

Wojciech Sznapka's Blog: Loosening dependencies with closures in PHP

Wojciech Sznapka's Blog: Loosening dependencies with closures in PHP
Wojciech Sznapka has a new tutorial posted to his blog today looking at removing some of the issues surrounding dependencies in PHP applications with the help of closures.Today I ran into a little issue: how to pass generic logger object to method? I wanted to get some verbose output from method, which I call from Command, but onc time it should log with Symfony2 OutputInterface and other time it should use monolog logger. Of course I can make some wrapper class for both of them, but it would be kind of...

Community News: Latest PECL Releases for 09.27.2011

Community News: Latest PECL Releases for 09.27.2011
Latest PECL Releases: varnish 0.9 varnish 0.9.1 timezonedb 2011.11