PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 61 to 80 of 256

Dennis Hotson's Blog: PHP Object Oriented Programming Reinvented

Dennis Hotson's Blog: PHP Object Oriented Programming Reinvented
Dennis Hotson has a new post to his Tumblr blog about what he calls PHP object-oriented programming reinvented - a chunk of code he's created that lets you build classes out of objects.It's tentatively called "PHP Object Oriented Programming Reinvented". Although it turns out the acronym is kind of unfortunate. I'm still working on that... The main idea is that classes aren't really very special at all, they're just objects like everything else. They don't even have names.. you give your class a name by...

Adam Pullen's Blog: Execution Filters in Symfony

Adam Pullen's Blog: Execution Filters in Symfony
Adam Pullen has posted a three-part series of articles looking at execution filters in Symfony to modify/handle the request differently than just the normal GET or POST would pass through.Symfony is a powerful PHP Framework. One of the features that I have really taken advantage in my last project is request filtering or execution filtering. Request filters allow you to inspect the request before and after the main logic is executed. Why would one want to do this? There are many reasons to implement...

PHP Console in Your Browser

PHP Console in Your Browser
So-called interactive modes for scripting languages are commonly used in the command line, and they are great for quick tests, but most of the time when I try something it tends to grow and quickly becomes painful to handle in a CLI one-liner. Since I spend most of my days programming PHP I tend to need that a lot and a few years back I wrote a small script that would let me type php code in my browser and execute it. Nothing fancy, but quite useful.Over the years a few people got interest seeing me use...

Chris Hartjes' Blog: Testing Form Posts in Zend Framework

Chris Hartjes' Blog: Testing Form Posts in Zend Framework
In a new post to his blog today Chris Hartjes talks about the trials and tribulations he had when trying to test POST requests in his Zend Framework application with Zend_Test/PHPUnit.I had done a refactoring of the way a model was pulling in stats for running backs and receivers for a fantasy game. As a result, in production (you suck Chris) you could not see results for those players. The data was there, I had not properly tested things. A familiar situation. So, I fixed the code and wrote my...

PHPBuilder.com: Using Vim for Your PHP Development

PHPBuilder.com: Using Vim for Your PHP Development
On PHPBuilder.com today Jason Gilmore has an introductory tutorial to using the popular vim editor for your PHP development with more that just the basic features.When you choose a streamlined IDE, you forfeit the visual bells and whistles usually found in many commercial products but you gain the ability to write, organize and refactor code as quickly as you can type. For millions of developers around the globe, that IDE is Vim, and in this article I'll show you how Vim can help you to write PHP code...

Ruslan Yakushev's Blog: ASP.NET vulnerability affecting PHP sites on IIS

Ruslan Yakushev's Blog: ASP.NET vulnerability affecting PHP sites on IIS
As Ruslan Yakushev points out in this new blog entry, the same security issue that's effecting ASP.NET pages running on IIS web servers can still open up PHP scripts running on the same server.Microsoft has recently released a Security Advisory about a security vulnerability in ASP.NET. This vulnerability exists in all versions of ASP.NET. The PHP applications running on IIS are also subject to this vulnerability if ASP.NET is enabled in IIS.The issue allows attackers to access the contents of various...

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:Mark van der Velden's Blog: PHP Quiz - Part 3 PHPBuilder.com: Aptana Studio Professional 1.5, a Complete Developer's Toolbox IBuildings Blog: PHP enters top 3 of most popular programming languages Gareth Heyes' Blog: PHP self return of the slash Community News: phpBenelux 2010 Conference Announced Clay Loveless' Blog: 5 Reasons Simple Cloud is a Dark Cloud IBM developerWorks: Cloud computing with PHP, Part 1: Using Amazon S3 with the Zend...

Speaking at PHP London, October 2010

Speaking at PHP London, October 2010
In October I will be speaking at the PHP London user group on Thursday 7th at the Theodore Bullfrog pub in London. I'm giving a new talk called "The Source Control Landscape", looking at the products currently available in the source control arena, how the distributed systems have changed the landscape, and how we can choose between them all today. I'm really looking forward to the event, it's always a good crowd and I love to meet new people as well as meet up with existing friends - see you there :)

a few new ideas

a few new ideas
Was just kicking around these ideas today a bit - we'll see if anything comes of them: Social ato do' list Rough idea: a service to allow people to agree to do things together. That could really be taken in many directions, and I'm not sure which (if any) I'd take, but I haven't seen anything quite like what's in my head yet. Social media profile disambiguator Perhaps there's some API service already, but I'd like to be able to look up someone by name and get a list of all their SM profiles. looking up...

ASP.NET vulnerability affecting PHP sites on IIS

ASP.NET vulnerability affecting PHP sites on IIS
Microsoft has recently released a Security Advisory about a security vulnerability in ASP.NET. This vulnerability exists in all versions of ASP.NET. The PHP applications running on IIS are also subject to this vulnerability if ASP.NET is enabled in IIS. IMPORTANT: Even if PHP application is not using any of the ASP.NET features the vulnerability still exists as long as ASP.NET is enabled. More information about the vulnerability can be found at the following links: Microsoft Security Advisory Security...

Autumn Conferences

Autumn Conferences
Autumn Conferences London, UK Wednesday, September 22nd 2010, 21:14 BST Autumn started yesterday, and that also marks the start of the 2010 autumn conference schedule. In the next two and a half months I'll be attending and speaking at several conferences. Besides some of the older topics (PHP's date/time extension, and Xdebug) I will also give a few presentations on "Geolocation and Maps with PHP". The new presentation covers the use of geolocation information with PHP. I will start with a...

GEF: Creating a connection on mouse drag

GEF: Creating a connection on mouse drag
This tip shows how to implement a connection creation when dragging a mouse from EditPart, thus saving user's time (one click instead of three: activating connection creation tool, clicking on EditPart, restoring selection tool).What you need is to return a ConnectionDragCreationTool from your EditPart:public DragTracker getDragTracker(Request request) { return new ConnectionDragCreationTool();}The problem begins if your EditPart has a Direct Edit policy, Direct Edit commands won't be handled anymore....

Switching on my WLAN with my phone

Switching on my WLAN with my phone
It all started when my router began to crash every few days. All my connections would drop, and misery ensued. I disabled WLAN/Wi-Fi and it stopped crashing, so I was happy. But then my laptop's range became limited, and my phone sucked up my precious data plan, which wasn't ideal either. Now the router I got is quite specific, it's remote controlled by the ISP and some settings are accessible only via their web interface, which means that enabling/disabling WLAN takes 3 minutes of waiting and is very...

Developer.com: Build Your First PHP for Android Application

Developer.com: Build Your First PHP for Android Application
On Developer.com there's a recent tutorial looking at developing your first Andriod application in PHP (running in a PHP interpreter on your device).Google's open source Android mobile operating system is taking the smartphone market by storm. Unlike Apple, which has stringent guidelines and requirements for developers who want to offer their applications on the iPhone App Store, Google has left the Android platform wide open. You can even write Android applications in PHP now. The folks at Irontech have...

Sameer Borate's Blog: Unpacking binary data in PHP

Sameer Borate's Blog: Unpacking binary data in PHP
Sameer Borate has a new post to his blog today talking about a method for unpacking binary data directly in PHP - specifically in working with images.To set the stage we will start with a programming problem, this will keep the discussion anchored to a relevant context. The problem is this : We want to write a function that takes a image file as an argument and tells us whether the file is a GIF image; irrelevant with whatever the extension the file may have. We are not to use any GD library functions.He...

Zend Developer Zone: DataModeler: Simple ORM - Part 2 Saving Models

Zend Developer Zone: DataModeler: Simple ORM - Part 2 Saving Models
In his previous post Vic Cherubini introduced his namespaced DataModler ORM class and showed how to create a basic model to work with user information to the database. In this second part he looks at taking those models and saving their contents to the database.After you have created your Models, it's time to save them to a datastore. DataModeler requires you to use PDO as the abstraction layer as it makes use of prepared statements and database specific extensions.He bases it all on PDO object - created...

Evercookie: the cookie that just won't die

Evercookie: the cookie that just won't die
Samy, famous for his worm, released evercookie this week. Evercookie stores cookies is various storage mechanisms such as Flash Local Shared Objects (also known as flookies), html5 storage mechanisms and even in the history and cache. When any of these are wiped by the user the script will repopulate it, making it very hard to get rid of your cookies.This is technique is common to circumvent a users' privacy wishes, which Clearspring recently got sued for, but it's put in overdrive.One good use for it is...

Till Klampaeckel's Blog: Debugging Zend_Test

Till Klampaeckel's Blog: Debugging Zend_Test
In a new post to his blog Till Klampaeckel looks at unit testing in a real life example he had when working with the Zend Framework's Zend_Test component.If I have to spend too much time debugging a test it's usually a bad test. Which usually means that it's too complex. However, with Zend_Test_PHPUnit_ControllerTestCase, it's often not the actual test, but the framework. This is not just tedious for myself, it's also not the most supportive fact when I ask my developers to write tests. [...] The...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Mail dispatcher PIMG Google, Text To Speech Kiwi Google Text To Speech PHP Scanner Twitter Auto Publish Retrieving, executing and saving partial data from SQL dump proc_runner CSFD Parser jQuery4PHP Easy CAPTCHA

Podcast - Symfony CMF Explained

Podcast - Symfony CMF Explained
You might have heard of the FrOSCamp that took place in ZArich last weekend. Being there, I took the opportunity to talk about the Symfony CMF with Thibault and Lukas. We talked about general things like the history and future of the CMF before digging into innovative architectural approach this project is taking. This discussion was recorded and you can find it either on my private blog or directly in iTunes.