PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 6761 to 6780 of 6889

Rob Zienert's Blob: Zend_Form Decorators and Composite Elements

Rob Zienert's Blob: Zend_Form Decorators and Composite Elements
Rob Zienert has a new post to his blog today looking at Zend_Form decorators and composite elements to make for more powerful forms in your Zend Framework application.Today had quite a number of Zend_Form-related questions in #zftalk. Everything from Decorators to Composite Elements, you know - the usual Zend_Form questions. What better way to answering questions than with a blog post and some sample code?His illustration of decorators shows how to put each of the form elements inside of a "DI" tag to...

PHP and Memcached: The state of things

PHP and Memcached: The state of things
Memcached is the de facto standard for caching in dynamic web sites. PHP is the one of the most widely used languages on the web. So, naturally there is lots of interest in using the two together. There are two choices for using memcached with PHP: PECL/memcache and PECL/memcached. Great names huh? But as of this writing there are issues with the two most popular Memcached libraries for PHP. This is a summary of those issues that I hope will help people being hurt by them and may bring about some...

Brian Swan's Blog: Running Multiple PHP Versions with IIS

Brian Swan's Blog: Running Multiple PHP Versions with IIS
Brian Swan has a new post to his blog today looking at how to run multiple PHP versions under IIS based on a presentation he gave at the Dutch PHP Conference.First of all, if you are starting from scratch (i.e. you haven't installed any version of PHP yet), then there is no need to read the rest of my post - you should read this post by Ruslan Yakushev (Program Manager on the IIS team): Multiple PHP Versions on the Same IIS Server.However, if you have installed at least one version (via the WPI of...

Till Klampaeckel's Blog: Monkey patching in PHP

Till Klampaeckel's Blog: Monkey patching in PHP
In a new post to his blog today Till Klampaeckel takes a look at monkey patching in PHP - a way to replace functions at runtime.I haven't really had the chance or time to play with PHP 5.3 until recently when Ubuntu 10.04 upgraded my local installations and kind of forced me to dive into it a little. And I'm also probably the last person on the planet to notice, but namespaces in PHP 5.3 allow you to monkey-patch core PHP code. [...] One of the more common applications is stubbing (or mocking) code in...

Conor Mac Aoidh's Blog: OS X: Audio Alerts for PHP Errors

Conor Mac Aoidh's Blog: OS X: Audio Alerts for PHP Errors
In a new post to his blog today Conor Mac Aoidh talks about a way he's developed to get audio alerts whenever PHP errors pop up in your scripts using the swatch tool.Kae posted today about tackling this problem under Linux, but I've found that it's quite a different task under OS X.It also uses some additional Perl modules (like Date::Calc and Date::Manip) to set up swatch. From there it's just a matter of adding a few lines to a configuration file to watch for the errors and sound the "bell". A few bash...

ZendCasts.com: Painless HTML Emails with Zend_Mail

ZendCasts.com: Painless HTML Emails with Zend_Mail
On the ZendCasts.com site today there's a new screencast posted looking at using the Zend_Mail component of the Zend Framework to easy (and painlessly) send HTML emails.Here's a quick video explaining how quickly and easy it is to write designer-friendly HTML emails using Zend_View and Zend_Mail.You can watch the screencast via their in-page player and grab a copy of the project to follow along.

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Smart AJAX Controller Easy Query Simple XLSX Runescape Tools PHP Scan PHP text file splitter Weather Kosovo SWF Insert CUtils TbsZip - a zip modifier Forum class File-Cache HTTP CURL Google Custom Search Secure Session Management

Midgard Runtime brings our web framework to the desktop

Midgard Runtime brings our web framework to the desktop
Midgard2 10.05.1 was released yesterday, bringing a long-waited feature finally to the Midgard installation packages: the Midgard Runtime. Midgard Runtime is an application that consists of a simple Qt WebKit viewer that, when run, starts a local Midgard web server on the background and connects to it. This means that you'll have the full Midgard MVC stack available on your own desktop, in a way that is easy to install and easy to run. Get it for your favorite Linux distribution from OBS! As a whole,...

TestFest 2010

TestFest 2010
PHP is proud to announce TestFest 2010. TestFest is PHP's annual campaign to increase the overall code coverage of PHP through PHPT tests. During TestFest, PHP User Groups and individuals around the world organize local events where new tests are written and new contributors are introduced to PHP's testing suite. Last year was very successful with 887 tests submitted and a code coverage increase of 2.5%. This year we hope to do better. TestFest's own SVN repository and reporting tools are back online for...

TestFest 2010

TestFest 2010
PHP is proud to announce TestFest 2010. TestFest is PHP's annual campaign to increase the overall code coverage of PHP through PHPT tests. During TestFest, PHP User Groups and individuals around the world organize local events where new tests are written and new contributors are introduced to PHP's testing suite. Last year was very successful with 887 tests submitted and a code coverage increase of 2.5%. This year we hope to do better. TestFest's own SVN repository and reporting tools are back online for...

Zend Framework 1.10.6 Released

Zend Framework 1.10.6 Released
The Zend Framework team announces the immediate availability of Zend Framework 1.10.6, our sixth maintenance release in the 1.10 series. This release includes more than 30 bug fixes. You may download it from the Zend Framework site .

Eran Galperin's Blog: On the pitfalls of date validation with the Zend Framework

Eran Galperin's Blog: On the pitfalls of date validation with the Zend Framework
On his techfounder.net blog today Eran Galperin talks about one of the issues you might currently see with the date validation in your Zend Framework application - a problem in the Zend_Validation_Date component related to its use of Zend_Locale.Zend_Date tries to validate dates according to a given format (with a default fallback). The dangerous behavior is that it tries to convert the given format to a localized format using Zend_Locale. Zend_Locale attempts to detect automatically the locale of the...

Ilia Alshanetsky's Blog: Google Docs Backup Script

Ilia Alshanetsky's Blog: Google Docs Backup Script
Ilia Alshanetsky has created a simple script (that uses curl) to make a backup of your Google Docs to keep you and your data a bit safer (since Google provides no backup capabilities).As part of the backup strategy we also wanted to capture incremental versions of the documents (on a daily basis) in the event we needed to go back to the prior versions. To this affect I whipped up a small (120 lines) PHP script that will retrieve all your Google documents and save them to a local directory, in the event...

Sameer Borate's Blog: Printing relative dates in php

Sameer Borate's Blog: Printing relative dates in php
Sameer Borate has a quick, helpful tip for anyone working with dates in PHP and wanting something a bit more readable than just the standard month-day-year kind of format.A couple of days back while writing some date code for a messaging service, I required to print the date of the messages in a relative format - 'today', 'yesterday', '3 weeks ago' etc. I wrote a small function for the same.The technique uses a "DateToWords" function he's created that finds the difference between now and the date being...

Pingdom.com: Exploring the software behind Facebook, the world's largest site

Pingdom.com: Exploring the software behind Facebook, the world's largest site
On pingdom.com there's a recent article posted looking at some of the technology behind Facebook and how they manage to keep up with the huge demand put on them and their servers.At the scale that Facebook operates, a lot of traditional approaches to serving web content break down or simply aren't practical. The challenge for Facebook's engineers has been to keep the site up and running smoothly in spite of handling close to half a billion active users. This article takes a look at some of the software...

Muhammad Hussein Fattahizadeh's Blog: Zend Config tree solution

Muhammad Hussein Fattahizadeh's Blog: Zend Config tree solution
In a new post to his blog Muhammad Hussein Fattahizadeh talks about defining a system that's a bit more handy than the usual one configuration file to one Zend_Config object relationship most projects use. His alternative uses a class to load multiple config files all at once.The best part of my favorite PHP framework, Zend framework is Zend_Config. With Zend Config you can run you web application with more power full configuration that any one can change your application setting for use. [...] But in...

Monkey patching in PHP

Monkey patching in PHP
I haven't really had the chance or time to play with PHP 5.3 until recently when Ubuntu 10.04 upgraded my local installations and kind of forced me to dive into it a little. And I'm also probably the last person on the planet to notice, but namespaces in PHP 5.3 allow you to monkey-patch core PHP code. What's monkey patching?So monkey patching is a technique to replace functions at runtime. One of the more common applications is stubbing (or mocking) code in unit tests. So for example mocking the...

Community News: Latest PECL Releases for 06.22.2010

Community News: Latest PECL Releases for 06.22.2010
Latest PECL Releases: chdb 0.1.0 gmagick 1.0.5b1 amqp 0.1.0

PHP BBQs 2010 - Karlsruhe today, Frankfurt 27th

PHP BBQs 2010 - Karlsruhe today, Frankfurt 27th
Pretty much exactly a year ago many german PHP meetups have held BBQs to celebrate the summer, to invite guests to join their meetups in a very relaxed atmosphere and to enjoy themselves. During the PHP BBQ week 2009 more than 140 people got connected and had fun . And, of course, I loved visiting all the meetups. I am not touring through the user groups this year. However, and that is fantastic news, some user groups have organized BBQs again. Today, June 22th - 19:00, you can enjoy a BBQ in Karlsruhe...

aY Software, APIs and all the king's men

aY Software, APIs and all the king's men
These days, it's a rare occurrence that a web-based application is only ever going to remain web-based. What starts as a website usually ends up taking on a life of its own and expanding into mobile apps, GUI-based interfaces, and so on. Unfortunately, the vast majority of websites are still built with the old aoweb-onlya approach in mind-which, in today's world, introduces by-design limitations in what your software can do: when the client comes calling and asking for, say, an iPhone version of your...

Latest PHP Tweets