PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 6741 to 6760 of 6889

Fabien Potencier's Blog: Iterator or IteratorAggregate?

Fabien Potencier's Blog: Iterator or IteratorAggregate?
Following up on two previous posts about iterators, Fabien Potencier is back with one more quick shot on iterator aggregation - a look what using iterator versus iteratoraggregate.If you have ever used iterators in your code, you have probably implemented the Iterator interface. Objects of a class that implements Iterator can be iterated over with the foreach loop. [...] The IteratorAggregate interface is quite similar [to Iterator] (both interfaces implement Traversable) but creates an external...

Chris Hartjes' Blog: Fun with custom Zend_Views

Chris Hartjes' Blog: Fun with custom Zend_Views
In a new post to his blog Chris Hartjes talks about some fund he had with custom Zend_Views in developing a fantasy gaming platform.I managed to figure out that one requirement was for an admin to upload a header and footer file for a game. "The idea here is to be able to set up a new game for someone without programmer intervention". After I got over being insulted that a programmer was not required for every tiny tweak to the site (I'm kidding) I tried to figure out how I was going to accomplish this....

MOPS-2010-061: PHP SplObjectStorage Deserialization Use-After-Free Vulnerability

MOPS-2010-061: PHP SplObjectStorage Deserialization Use-After-Free Vulnerability
A use-after-free vulnerability was discovered in the deserialization of SPLObjectStorage objects that can be abused for leaking arbitrary memory blocks or execute arbitrary code remotely. Affected versions Affected is PHP 5.2 Affected is PHP 5.3 Risk Critical. Credits This vulnerability was disclosed by Stefan Esser of SektionEins GmbH during the SyScan Singapore 2010 security conference. Detailed information PHP's unserialize() function has had many memory corruption and use-after-free vulnerabilities...

Brian Swan's Blog: Accessing Windows Azure Table Storage from PHP

Brian Swan's Blog: Accessing Windows Azure Table Storage from PHP
Brian Swan (of Microsoft) has a new post to his blog today looking at using the Windows Azure Table Storage from inside of your PHP application.An overly-simplified answer: Windows Azure Table Storage is structured storage in the cloud provided by the Windows Azure platform. It allows you to create any number of tables, which can each contain any number of entities. Each entity can in turn contain any number of properties. A picture is worth a thousand words here.Think of it as almost a Microsoft-created...

Symfony Blog: Symfony2 Online Conference

Symfony Blog: Symfony2 Online Conference
If you weren't able to listen in on the Symfony2 Online conference back on June 22nd and 23rd, you can catch up by checking out the slides that have been posted to the Symfony blog today.Yesterday and the day before, Sensio Labs organized the first Symfony2 online conference. It was a great success with more than 350 attendees (from over 35 different countries), and a dozen hubs around the world. Thankfully, the platform worked fine.There's several sets of slides posted here for sessions like: News of...

aY NoSQL, round holes and square pegs

aY NoSQL, round holes and square pegs
Ivo Jansch: In last year's conference, there was a talk on CouchDB, introducing a aNoSQL' database as a response to relational databases often being a hassle when web data needs to be stored and manipulated. This year, we could see that NoSQL is catching on and becoming more mainstream. Matthew Weier O'Phinney, project manager of the Zend Framework, discussed NoSQL in detail, and MongoDB (Another NoSQL database) was mentioned in a couple of talks. NoSQL is definitely something to have a look at, and it...

Site News: Popular Posts for the Week of 06.25.2010

Site News: Popular Posts for the Week of 06.25.2010
Popular posts from PHPDeveloper.org for the past week:Otto on WordPress: WordPress 3.0: Multisite Domain Mapping Tutorial ThinkPHP Blog: Benchmarking & optimizing real-world scenarios in a business context NETTUTS.com: How to Write a "Most Popular By Views" WordPress Plugin Fawad Hassan's Blog: CRUD using jQuery and Codeigniter - I Zend Developer Zone: Announcing The June ZF Bug Hunting Days Pingdom.com: Exploring the software behind Facebook, the world's largest site Prescot Linux Blog: Finding the...

Iterator or IteratorAggregate?

Iterator or IteratorAggregate?
In my last two posts, I talked about PHP iterators. Here is a quick tip on the same topic. If you have ever used iterators in your code, you have probably implemented the Iterator interface. Objects of a class that implements Iterator can be iterated over with the foreach loop: $foo = new Foo(); A foreach ($foo as $key = $value) { // do something with $key and $value } A The Iterator interface has five simple methods that must be implemented: class Foo implements Iterator { protected $attributes; A...

Ivo Jansch's Blog: What's current in the world of PHP?

Ivo Jansch's Blog: What's current in the world of PHP?
On his Ibuildings blog today Ivo Jansch has posted some of his thoughts on the recent trends he's seeing both in the PHP community and in the wider world of online development.[Two] weeks ago, Ibuildings organised the fourth Dutch PHP Conference in the RAI centre in Amsterdam. DPC is a way for us to help PHP developers learn new skills and improve existing ones, but it is also an excellent way to get experts from around the world together and learn about current trends in the PHP ecosystem.Topics...

TutToaster.com: How To Use, Style and Implement Wordpress Shortcodes

TutToaster.com: How To Use, Style and Implement Wordpress Shortcodes
On the TutToaster.com site there's a recent post looking at using WordPress shortcodes, including how o style and implement them in your own site installation.Wordpress shortcode API is a powerful function which was introduced from version 2.5, it's just a simple set of functions for creating macro codes in post content. If you've developed a Vbulletin forum before, you would have been familiar with the shortcode (something called BBCode) but the Wordpress users maybe not. In this article, I would like...

Lorna Mitchell's Blog: Accessing the Magento V2 API

Lorna Mitchell's Blog: Accessing the Magento V2 API
Lorna Mitchell has a new post to her blog today looking at one of the differences she's found in her work with the Magento API between version 1 and version 2.I must say that I am always pleased when I see that these products do include some kind of API. The Magento one is a bit interesting, although there is some half-decent API documentation for the original API. However they have then released a new version of the API, with very little documentation.Her example code shows the difference in a call to...

Sameer Borate's Blog: Google Translation PHP wrapper v1.7

Sameer Borate's Blog: Google Translation PHP wrapper v1.7
Sameer Borate has posted an update to his Google Translation wrapper library that increases the translation limit to above the 5000 character max Google enforces.If the text length is more than 5000 characters it is split into discrete chunks and translated individually, returning the complete translated text at the end. Now you can easily translate whole pages of content.He includes a code snippet showing how it can be used to translate a whole page easily via a file_get_contents call to pull in the...

Brian Moon's Blog: PHP and Memcached: The state of things

Brian Moon's Blog: PHP and Memcached: The state of things
In a new post to his blog Brian Moon takes a look at two of the memcache PHP libraries (memcache/memcached) and looks at some of the issues that might trip you up in using them.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...

PHP.net: TestFest 2010

PHP.net: TestFest 2010
A new announcement on the PHP.net site today talks about this year's TestFest, an even to help increase the code coverage of the tests on the PHP language itself.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.The SVN repository and reporting tools are back...

What's current in the world of PHP?

What's current in the world of PHP?
2 weeks ago, Ibuildings organised the fourth Dutch PHP Conference in the RAI centre in Amsterdam. DPC is a way for us to help PHP developers learn new skills and improve existing ones, but it is also an excellent way to get experts from around the world together and learn about current trends in the PHP ecosystem. Continue reading "What's current in the world of PHP?"

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:PHP 10.0 Blog: PHP performance tips from Google SitePoint PHP Blog: A Note on Google's So-called Best Practices Maurice Svay's Blog: Face detection in pure PHP (without OpenCV) EasyPHPWebsites.com: Creating a Website Visitor Map (Ajax, jQuery, Google Maps API) Enterprise PHP Magazine: How Many Perl, PHP, Python and Ruby Developers Are There? NETTUTS.com: Easy Development With CodeIgniter Rob Allen's Blog: Some notes on Zend Server CE for Mac...

PHP: Client side caching for all MySQL extensions

PHP: Client side caching for all MySQL extensions
The first public mysqlnd plugin adds client side query result caching to all MySQL extensions of PHP (ext/mysql, ext/mysqli, PDO_MySQL). The cache is written in C. It does not change any of the PHP MySQL APIs and works with any PHP application using MySQL. Query results are stored on the client. Cached data can be stored in main memory, APC, Memcache, SQLite (theoretically - via SQLite wrapper - BerkeleyDB). The default invalidation strategy is TTL (Time to live): cache entries are valid for n-seconds....

Accessing the Magento V2 API

Accessing the Magento V2 API
Recently I've been working with Magento at work, and in particular with integrating with their API. Now, before I say anything more, I must say that I am always pleased when I see that these products do include some kind of API. The Magento one is a bit interesting, although there is some half-decent API documentation for the original API. However they have then released a new version of the API, with very little documentation. So here are two calls - one to the v1 API and one to the v2 - which I hope...

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...

Document Databases

Document Databases
At tomorrow's Burlington, VT PHP Users Group meeting Matthew Weier O'Phinney will be giving a presentation on Document Databases. From the meeting description: NoSQL has become a new buzzword in web development-but what is it, exactly? We'll look at the big picture to identify what types of NoSQL solutions exist, what sorts of problems they solve, and go into some specifics on CouchDB and MongoDB usage so that you can see how you might use these new tools within your PHP development. The meeting will be...

Latest PHP Tweets