PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 5481 to 5500 of 6889

Kevin Schroeder's Blog: Amazon SQS and Zend Framework

Kevin Schroeder's Blog: Amazon SQS and Zend Framework
On his blog today Kevin Schroeder has a quick post about an issue with the queue name when working with the Amazon SQS service.I'm doing some work for a webinar and I figured out that if you want use AWS SQS in your app you need to specify not just the queue name, but the full URL. What is the full URL? It is what createQueue() returns.His code example shows a "before" and "after" of using the createQueue method to make the correct queue name. You can find out more about the Amazon Simple Queue Service...

Apache Zeta Components: Doing mail right

Apache Zeta Components: Doing mail right
Sending and receiving mail is a regular, but often cumbersome task. Especially, when it comes to more complex mails than just plain text. html and alternate text parts, embedded images, attachments and digests can make your brain spin if you need to do it yourself. The Apache Zeta Mail component makes it easy for you to send such mails, but also to receive them! In this article I show you how to send html emails with embedded images and how to receive all mails from an IMAP server and forward them in a...

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:Symfony Blog: Books for symfony 1.3/1.4 CatsWhoCode.com: 10 awesome things to do with cURL Community News: Latest Release of Rediska Adam Jensen's Blog: Using Zend_Acl with Doctrine record listeners Phil Sturgeon's Blog: Send iPhone notifications from CodeIgniter Richard Thomas' Blog: Frameworks are like Hammers Inside DealTaker Blog: Kohana PHP 3.0 (KO3) Tutorial Part 1 IBuildings techPortal: Analysing PHP web applications with dtrace...

Keynoting at PHPBenelux

Keynoting at PHPBenelux
Have you got your tickets for PHPBenelux yet? If not then I hope you will do so because I would love to see you there! I'll be delivering a keynote at the PHPBenelux Conference in Antwerp in January alongside my good friend Ivo Jansch. Between us we've got plenty of stories to tell from our experiences in various areas of development and we'd like to share those with you! I hope you'll come along and join us, and if you are quick you can catch the early bird prices, saving 50 euro. On a personal note I...

Run FindBugs from your Eclipse RCP headless build

Run FindBugs from your Eclipse RCP headless build
Running FindBugs from Eclipse RCP headless build is pretty much simple:1. Add the following target to your customTargets.xml (replace "com.yourcompany" with your package/plug-in prefix): classname="edu.umd.cs.findbugs.anttask.FindBugsTask" home="${env.FINDBUGS_HOME}/lib" output="xml" failOnError="true" jvmargs="-server -Xss1m -Xms512m -Xmx1024m" includeFilter="${basedir}/findbugs-filter.xml" outputFile="${buildDirectory}/findbugs.xml" 2. Create input filter...

A First Look at Fuel

A First Look at Fuel
There was an announcement a while back from Phil Strugeon and a few others (shortly after some issues came to light with a certain other framework) about a new framework they were developing that came to be called Fuel. According to their site, the goal is to be: a simple, flexible, community driven PHP5 framework. FUEL aims to take the best idea's from a bunch of frameworks, throw away the aonot so gooda stuff, and create one awesome framework. It is provided under the terms of an MIT License, which...

Zend Developer Zone: Announcing The Zend Framework Bug Hunt Champions

Zend Developer Zone: Announcing The Zend Framework Bug Hunt Champions
The results of this month's Bug Hunt Day for the Zend Framework are in and the Zend Developer Zone has posted about the champions and stats for the event.In just 3 short days, contributors managed to resolve exactly 111 issues. Fitting though, if you think about it, since this is the 1.11 branch for Zend Framework: 111 issues, 1.11 branch release... I'd like to say we planned it that way, but alas, it was merely coincidental the way these numbers worked out.The champion for this month's event is Ryan...

A ray of light for PHP

A ray of light for PHP
A little more than a half year ago I announced my retirement from PHP core. Since then I have directed my focus elsewhere like Symfony2 and not the CMF project. I do not regret the decision. The main reason to step down was that it was just a too taxing up hill battle to move PHP towards a more open and transparent development process against the inner circle who preferred things to stay as they were back when PHP was by far not as popular or relied upon. This is what I had to say back then: Through out...

PHPBuilder.com: Implementing the Singleton Pattern in PHP 5

PHPBuilder.com: Implementing the Singleton Pattern in PHP 5
If you haven't taken much of a look at design patterns and how they can help your development life, the Singleton pattern is a good place to start. On PHPBuilder.com there's a new tutorial introducing this handy pattern and how it might fit your needs.One of these patterns is the Singleton design pattern, which is based on the mathematical concept of a singleton (a set with a single element). [...] Sometimes the Singleton pattern can help complete important programming tasks, but only you can decide...

DZone.com: Zend_Glossary

DZone.com: Zend_Glossary
If you're new to using the Zend Framework, you there's one big hurdle you might have to overcome. There's a lot of terms used in the system that might not be all that familiar to you. Thankfully Giorgio Sirnoi has written up a guide (he calls it a "Zend_Glossary") to help smooth over the rough parts.When you're approaching a framework with a learning curve as steep as ZF, it's easy to be overwhelmed by new terms and declare them buzzwords. Instead, they have often a very precise meaning. I've creates...

CogniterPodcast.com: Ep. #4 - Changes to CodeIgniter 2.0 and the Community Branch

CogniterPodcast.com: Ep. #4 - Changes to CodeIgniter 2.0 and the Community Branch
A new episode of the CodeIgniter podcast has been released today talking about some of the recent happenings in the CodeIgniter community.Phil, Derek and Kenny have a chat about the recent changes in CodeIgniter 2.0 (dropping PHP4 and others) and talk about the new CodeIgniter Community Branch.Resources mentioned include Derick Allard's blog, the official information about the community branch, Ion Auth and a course schedule and booking system example. You can either download the mp3 of the episode or...

Sebastian Bergmann's Blog: Scalar Type Hints in PHP 5.3.99

Sebastian Bergmann's Blog: Scalar Type Hints in PHP 5.3.99
In the theme of other recent posts mentioning the scalar type hinting that has been included in the main line of code that is headed towards the next PHP release, Sebastian Bergmann has a new post about their inclusion in PHP 5.3.99 (yes, that's PHP 5.4) and the new syntax it introduces.In a nutshell, this means that PHP 5.3.99 introduces new syntax -- scalar type hints -- but no new semantics. The latter can either be implemented as an extension written in C/C++, in userland PHP code, or in a tool that...

Henri Bergius' Blog: PHP: Finally getting an ecosystem?

Henri Bergius' Blog: PHP: Finally getting an ecosystem?
In this new post to his blog Henri Bergius takes a step back and wonders if PHP is finally getting an ecosystem of its own (and not leaning of those of PHP-based projects.One of my main concerns with PHP has been the lack of ecosystem. Almost all libraries and tools are written with a specific framework in mind, creating separate ecosystems around Drupal, Zend Framework, Midgard and others instead of an ecosystem benefiting all users of the language. There have been efforts at this, like PEAR before, but...

Wojciech Sznapka's Blog: Power of PHP streams - decompress gz archives on the fly from remote server

Wojciech Sznapka's Blog: Power of PHP streams - decompress gz archives on the fly from remote server
Wojciech Sznapka has a new post to his blog today looking at the "power of PHP streams" and how they can be used to decompress gzipped data from remote servers.Probably most of us heard about streams in PHP. They are background of all files and network operations in PHP, even if we don't see it. Everytime when you use file_get_contents or fopen you are actually using streams. But there are many stream wrappers I haven't used, because they aren't well known.One of them is compress.zlib (and two other...

Move from MySQL to DB2 via the Cloud

Move from MySQL to DB2 via the Cloud
IBM developerWorks has just published the first article in a series that Mark Nusekabel, Yan Li Mu and I wrote about our experience migrating a large PHP and MySQL application to DB2. In the four part series we look at preparation, switching databases, porting code, and finally deploying the application. This first installment covers the [...]

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
AMaths Disk Usage Simple Language Changer Oracle::DB Database Management Class EventDriven English to Arabic Number CAPTCHA Creator ip2country PHP WSAMemcached

Microsoft Certified Applications: SilverStripe

Microsoft Certified Applications: SilverStripe
Microsoft recently certified the first open source web application to run on Windows Server 2008 R2. That application was SilverStripe, a Content Management System (CMS) originally developed by a team in New Zealand. There are many excellent CMS and other open source web projects but Microsoft saw something they liked in SilverStripe. Ibuildings are certified SilverStripe partners and have been working with it for quite some time, so I thought this was a great time to shed some light on this excellent...

Magento: Loading the product from a template

Magento: Loading the product from a template
When I wrangle with Magento Commerce and customize anything, every other bit is of course tied to a product's ID, or sometimes entity ID. The challenging part is that whenever you're in a template in Magento, the scope is very different from the previous one. This is sometimes frustrating, but when you think of it - it makes sense. That is in Magento! ;-)Magento works in blocks and each block is basically a class file, of course $this is never the same. So for example the scope of a block that renders a...

iCalendar / vCard parser for PHP

iCalendar / vCard parser for PHP
I've just finished an iCalendar vCard parser for PHP. It's done almost completely with a 'natural' simplexml-like interface, so it should (hopefully) be just as easy to parse, and also modify iCalendar / vCard objects (ics/vcf files). To install using pear, run the following:pear channel-discover pear.sabredav.orgpear install sabredav/Sabre_VObject-alphaOr download from pear.sabredav.org.For testing, I used this iCalendar file: icalendartest.ics.To load in an object, you use the Reader class:// Link to...

Devis Lucato's Blog: Anonymous objects in PHP - Composition, Mocks, Refactoring

Devis Lucato's Blog: Anonymous objects in PHP - Composition, Mocks, Refactoring
In a new post to his blog Devis Lucato points out something he noticed when working with objects and anonymous functions/closures - they're not all as they seem.Both solutions allow to instantiate an anonymous object with properties. They are used as value objects and have no other purpose than storing values, so no logic can be included and they don't come with methods. They can be used as function parameters instead of arrays, for instance. PHP 5.3.0 introduced anonymous functions and closures, so it...

Latest PHP Tweets