PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 4101 to 4120 of 6889

Ryan Mauger's Blog: Using Twig with Zend Framework

Ryan Mauger's Blog: Using Twig with Zend Framework
Ryan Mauger has written up a new post about an integration he's done using the Twig templating engine (from be Symfony community) with his Zend Framework application to make view handling simpler.Mostly I thought [what Twig offered] were silly things that were not really needed unless you had a team of designers to work with, however, during my exploration, a couple of things occurred to me that I had not considered about templating systems before. One being the enforced separation of concerns they...

Site News: Blast from the Past - One Year Ago in PHP

Site News: Blast from the Past - One Year Ago in PHP
Here's what was popular in the PHP community one year ago today:Mike van Riel's Blog: phpStorm, a true delight to work with Lorna Mitchell's Blog: Accessing the Magento Web API Emran Hasan's Blog: Quick start on new Facebook PHP SDK (IFrame based) Alan Skorkin's Blog: What Every Developer Should Know About URLs Chris Hartjes' Blog: More Awesome Deployment Using Phing Content with Style: Linkedin and Zend_Oauth Matthew Weier O'Phinney's Blog: Writing Gearman Workers in PHP WebReference.com: Encryption...

Rob Allen's Blog: Exploring Zend_Paginator

Rob Allen's Blog: Exploring Zend_Paginator
Rob Allen has a new post today exploring Zend_Paginator and some of the features it has to offer.One area of displaying lists on web pages that I've generally disliked doing is pagination as it's a bit of a faff. Recently, I needed to do just this though as I couldn't delegate it as my colleague was too busy on other work. As a result, I thought that I should look into Zend_Paginator this time. Turns out that it's really easy to use and the documentation is great too.He includes some sample code to set...

Philip Norton's Blog: Announcing The PHPNW 2011 Conference

Philip Norton's Blog: Announcing The PHPNW 2011 Conference
In a new post to his blog today Philip Norton has made his announcement about this year's PHP North West Conference 2011 happening October 7th through 9th in Manchester, UK.I have attended the last 3 PHPNW conferences and they have all been of a very high standard in virtually every way. [...] The conference will be split over two days on the 8th and 9th of October with 3 full tracks on the Saturday and 2 tracks on the Sunday. There will also be lots of coffee breaks and there is usually a free bar in...

Script-Tutorials.com: Creating a Modern Looking Animated Login System in PHP

Script-Tutorials.com: Creating a Modern Looking Animated Login System in PHP
New from the Script-Tutorials.com site there's a guide to getting a modern looking animated login system working on your PHP application. It uses jQuery to do some of the "modern" bits when the user logs in.Today we will continue PHP lessons, and our article will about creating modern php login system. Possible you already saw similar ways to display login forms, and today we will repeat this by self. In result - it will some small element in your page layout, and after clicking on it - will appear some...

James Cohen's Blog: Working with Date and Time in PHP

James Cohen's Blog: Working with Date and Time in PHP
James Cohen has a new post to his blog today looking at some of the built-in functionality that PHP has to work with dates and times including simple things like strtotime and the DateTime feature.A lot of people ask questions relating to date and time in PHP. Here are some answers to the most commonly asked questions and common mistakes.He covers the differences between working with dates in strtotime, worrying about timezone settings and compares the strtotime/DateTime methods for formatting and...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
PHP MySql Authentication Class Form Validation Easy Simple LDAP DB table extractor Data Format Easy Array To XML Uploader Class Simple Template System icRouter Multi-format countdown String Obscure Super Globals Access Interface

Ibuildings techPortal's Blog: Ibuildings Challenge: Results

Ibuildings techPortal's Blog: Ibuildings Challenge: Results
On the Ibuildings techPortal today they've posted the results of their Ibuildings challenge where the developer had to create a script able to play "Four in a Line" based on an abstract Player class provided.Four in a Line as game has been mathematically solved and the advantage lies with the player taking the first turn. To level the playing field, we allowed each player to fight against all the others; in this way, any player had the chance to begin with the first move advantage playing against all the...

Enrico Zimuel's Blog: XML to JSON in PHP: an odyssey

Enrico Zimuel's Blog: XML to JSON in PHP: an odyssey
Enrico Zimuel as a new post to his blog today talking about his exploration of a Zend Framework bug related to the JSON handling of the Zend_Json component. The issue was related to the conversion of XML to JSON but it only happened in specific instances.As you can see the bar value, of the a element [in the example code], is not represented in JSON. This issue comes also with other XML documents, and in general when an XML node has a single character data child, any attributes are lost.In tracking down...

Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 1

Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 1
On the Web Developer Juice blog there's a recent post, the first part in a series looking at one of the more handy features of the recent releases of PHP - the magic functions (some which were added in the PHP 5.x series).There are some reserved function names in PHP class starting with __ (double underscore). These are __construct, __destruct, __isset, __unset, __call, __callStatic, __sleep, __wakeup, __get, __set, __toString, __set_state, __invoke and __clone. You cannot use these functions to serve...

Gimme Bar on MongoDB

Gimme Bar on MongoDB
I'm happy to report that Gimme Bar has been running very well on MongoDB since early February of this year. I previously posted on some of the reasons we decided to move off of CouchDB. If you haven't read that, please consider it a prerequisite for the consumption of this post. Late last year, I knew that we had no choice but to get off of CouchDB. I was dreading the port. The dread was two-fold. I dreaded learning a new database software, its client interface, administration techniques, and general...

Making phones ring with Tropo

Making phones ring with Tropo
I spent Saturday working the registration table at DrupalCamp Nashville. Aside from getting to be a bunch of great people, I got to spend most of the day sitting next to Adam Kalsey of Tropo. It seems that every time I turn around these days I'm running into Tropo at PHP events. So I decided to play around with their API to see what all the fuss was about.

Sophisticated Object Iterators in PHP

Sophisticated Object Iterators in PHP
In my previous post, Simple Object Iterators in PHP, we discovered how to iterate over array items defined within an object using a foreach loop. However, what if you need to iterate over items which are not stored in an array, e.g. records from a database or lines of text read from a file?For the following example, we'll create a class which:counts the number of users who are logged in to a web application by retrieving records from a databasecreates a collection of aousera objects which can be iterated...

Voices of the ElePHPant: Interview with Bulat Shakirzyanov

Voices of the ElePHPant: Interview with Bulat Shakirzyanov
The Voices of the ElePHPant podcast has posted their latest episode - an interview with Bulat Shakirzyanov.Cal's "three questions" for Bulat revolve around his work with unit testing: How do you counter the arguments that unit testing takes too much time or their boss/client won't give them the time to learn or practice testing? Do you advocate 100% unit test coverage - if so, why (and if no, why not)? Why is it important for developers to mock native PHP commands in their unit tests? You can listen to...

Chris Hartjes' Blog: Testing Web Services in Zend Framework 1.x

Chris Hartjes' Blog: Testing Web Services in Zend Framework 1.x
In a new post to his blog Chris Hartjes shares a technique he figured out for testing web services in Zend Framework 1.x - in his case, a remote application he wanted to mock out with test doubles that would give different responses based on the parameters given.Reading the existing PHPUnit documentation did not provide me with enough hints on how to solve this particular problem, so while I dug around duckduckgoing for a solution I asked Twitter for help. One blog post and 3 tweets later, I had the...

Gonzalo Ayuso's Blog: Performance analysis of Stored Procedures with PDO and PHP

Gonzalo Ayuso's Blog: Performance analysis of Stored Procedures with PDO and PHP
Gonzalo Ayuso has posted the results of some testing he's done in using stored procedures in a PHP application. He compares the run time of two different scripts, one using prepared statements and one without, to see which would perform better in the long run.Last week I had an interesting conversation on twitter about the usage of stored procedures in databases. Someone told stored procedure are evil. I'm not agree with that. Stored procedures are a great place to store business logic. In this post I'm...

Community News: Latest PECL Releases for 05.03.2011

Community News: Latest PECL Releases for 05.03.2011
Latest PECL Releases: rrd 1.0.3 timezonedb 2011.7 gmagick 1.0.8b2 APC 3.1.8

Adobe Flash Builder 4.5 for PHP is now available!

Adobe Flash Builder 4.5 for PHP is now available!
As I recently noted, we have teamed with Adobe to deliver a solution for developers to rapidly deliver native, connected mobile applications. This joint solution based on Adobe Flash Builder, Zend Studio and Adobe AIR enables users to use a common code base and target multiple devices including iOS, Android and Blackberry. Passed are the days where you have to learn Objective-C, Java and other native frameworks. A recent research report noted that the # of Mobile app downloads will reach 44 billion by...

Community News: Dutch PHP Conference - Important update: Conference Social Location has Changed!

Community News: Dutch PHP Conference - Important update: Conference Social Location has Changed!
If you're attending this year's Dutch PHP Conference, they've just posted an important announcement about the conference social:The conference social will now take place at a venue called ClubNL, which is also in central Amsterdam and within easy walk from the Amsterdam main train station. Please remember to hold on to your conference badge, as you will need it to gain access to the event. For more details check out the updated social page on our website. We are hoping to see you all there!There's still...

Phil Sturgeon's Blog: Benchmark 2011: A call for Participants

Phil Sturgeon's Blog: Benchmark 2011: A call for Participants
Phil Sturgeon has put out a call for volunteers about running some benchmarks on the wide range of PHP frameworks out there. He wants set up a "Benchamrks 2011" event that gives all of the frameworks their fair share at putting up good numbers in their most optimized fashion.Yesterday Dan Horrigan (another PHP framework user and developer) suggested we all have a go at "Benchmark 2011". A chance for every framework developer or interested party to take their framework of choice, make a hello world and...

Latest PHP Tweets