PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 201 to 220 of 225

To Protect and Surf

To Protect and Surf
Slashdot reports, that CSS History Sniffing is back - this time utilizing the latency that your browser shows when you have visited a site already. The time a browser takes to respond differs when the resource that is linked in a page is already in the browser cache. Of course that only works when you actually fetch the resources. As i described earlier, there is a Firefox extension that protects you: Request Policy. This extension lets you choose which sites may refer to which other sites. It's a bit...

05.12. Doctrine 2

05.12. Doctrine 2
.serendipity_entry h1 { font-size: 20px; margin: 13px 0; } .serendipity_entry h2 { margin: 7px 0; } .serendipity_entry ul { padding-left: 3em; } .gist-data { max-height: 250px; overflow: auto; } Introduction Object-relational mapping (ORM) frameworks have been around for several years now and for some people, ORM is already outdated by now. As we have seen with other technologies and concepts before, PHP is not exactly what we call an early adopter among the programming languages. Thus it...

04.12. PDF nicht nur mit PHP

04.12. PDF nicht nur mit PHP
Eine Suche nach Aphp pdfA" bei der Suchmaschine meiner Wahl ergibt eine Vielzahl an Tutorials, Blog-EintrAgen und natArlich auch Klassen und Bibliotheken. In diesem Blog-Artikel mAchte ich einen knappen Aoberblick Aber einige der gebrAuchlichsten PHP-Tools zur PDF-Generierung geben und Alternativen zeigen die keine Programmierung erfordern. PHP: PDF A- ManualDas erste Suchergebnis fAhrt uns auf die PHP Manual Seite. Das braucht Ihr Euch nicht anzuschauen weil es einfach nur verwirrend und unvollstAndig...

Better Than the Rest

Better Than the Rest
If you've written a web service that other clients are going to connect to, I'm willing to bet you think you've done a pretty good job. I would like to take a minute of your time to explore how most web services appear to the client developer. It's not all rosy on our side of the fence, and I'm hoping that by enumerating the most common problems I come across when working with web services, your web service can avoid them. Let's start with content types and formats. There are precisely two formats that...

Cooking PHPUnit (and a chef-solo example on top)

Cooking PHPUnit (and a chef-solo example on top)
I'm sure most of you noticed that with the recent upgrade of PHPUnit to version 3.6, a lot of breakage was introduced in various projects. And for example Zend Framework 1.x won't update to the latest version either. When I ranted on twitter someone send me Christer Edvartsen's blog post on how to setup multiple versions of PHPUnit. It's really neat since it walks you through the setup step by step and you learn about things such as --installroot on the way. --installroot in particular is something I...

PHP Internals, Let's Chat About the Future!

PHP Internals, Let's Chat About the Future!
Consider this a call to the PHP Internals team. We've been doing a series of panel discussions over at Engine Yard about PHP-related frameworks and where they are going in the future, but one important piece that's missing is the discussion about the future of the PHP core.A few weeks ago, I approached Rasmus about this and we both came to the agreement that it would be very difficult to nail down core devs to a handful of people. The PHP core team is large and far-reaching. How do you decide who to ask...

Reduced-Friction Deployment

Reduced-Friction Deployment
I view my job as shepherding code from its inception in a Vim buffer, in a terminal session, in my development environment, until it makes it up into production in our space-age cloud app architecture. Anything less than that will result in mistakes, missed deadlines, and unfulfilled promises. It will also create unnecessary friction. How can we get there? I wanted to share my thoughts on things you can do to reduce the deployment friction, even if you can't get to continuous delivery any time...

The Future of (PHP) Progress

The Future of (PHP) Progress
I'll admit it - I love to geek out as much as the next guy at the latest features of the PHP frameworks out there. I read the articles and tutorials every day about something awesome some framework can do (that maybe another can't) and wish I had a place to apply it. I even find myself trying to think of new little projects so I can say I work with the latest tech. It's an easy trap to fall into. I came to a realization earlier about frameworks, though - it's less about the new hotness that the...

NetTuts.com: Wrangling with the Facebook Graph API

NetTuts.com: Wrangling with the Facebook Graph API
On the NetTuts.com site today they have a (very complete) guide to help you wrangle the Facebook Graph API and make it useful for your application. It makes use of the official Facebook PHP SDK to interface with the Graph API.Have you ever wanted to learn how to make your applications more social with Facebook? It's much easier than you think! In this tutorial, we'll be building an application that reads and publishes data to and from Facebook using Facebook's Graph API.The tutorial helps you get signed...

PHPClasses.org: Lately in PHP Podcast Episode 18 - The Debate on Remote Work for Web Developers

PHPClasses.org: Lately in PHP Podcast Episode 18 - The Debate on Remote Work for Web Developers
On the PHPClasses.org site they've posted the latest episode of their "Lately in PHP" podcast. This time the focus is on a recent article that was posted to the site about finding good developers by looking in the right place.The recently published article on attracting talented Web developers by offering remote job positions raised an interesting debate on the challenges, advantages and disadvantages of this way of working. This debate was the main topic of discussion of the episode 18 of the Lately in...

Community News: PHP Advent 2011

Community News: PHP Advent 2011
It's that time of year again and this year's PHP Advent has kicked off with the first article posted yesterday. Below is a list of the articles for this year's advent calendar, to be updated as each new one is released: Because It's Fun! by Derek Sivers More Than Just Style by Laura Beth Denker Reduced-Friction Deployment by Chris Hartjes Better Than the Rest by Rob Allen Check back for the growing list as this year's advent gets more great content every day!

Kevin Schroeder's Blog: Setting up a connection to the Zend Developer Cloud on Linux

Kevin Schroeder's Blog: Setting up a connection to the Zend Developer Cloud on Linux
Kevin Schroeder has a method in one of his latest posts for hooking your linux-based system into Zend's phpcloud platform, complete with an automatic upload (so you're not constantly sftp-ing).Connecting with the Zend DevCloud in Linux is actually quite easy if you know how to use SFTP. [...] But, as I said in a previous post, I hate having to do command line stuff for each and every file or commit. I like things to work seamlessly. So what I did was write a PHP script that connects to the DevCloud (or...

Joshua Thijssen's Blog: Compatible code: starting with symfony2

Joshua Thijssen's Blog: Compatible code: starting with symfony2
In a new post to his blog, Joshua Thijssen documents some of his first steps into the world of the Symfony2 framework (as a developer who has lived mostly in a Zend Framework/CodeIgniter world). His post doesn't compare the frameworks, it's just his discovery along the way.A friend of mine who is a big supporter of Symfony told me to give Symfony1 a shot. Off course I was skeptical since I knew less about symfony1 than I did on Zend_Tool. That, plus the fact we needed to autoload, bootstrap and get two...

Jake Smith's Blog: Callback Filter Iterator in PHP 5.3/5.4

Jake Smith's Blog: Callback Filter Iterator in PHP 5.3/5.4
Jake Smith has a new post to his blog today about a feature included in PHP's Standard PHP Library that you might have overlooked - the FilterIterator's callback functionality.The Filter Iterator is probably my second favorite iterator, next to Directory Iterator. There are many great use cases for the Filter Iterator, and when you do filter the original data is left untouched. A Filter Iterator is really simple to use, create a class that extends FilterIterator and adjust the accept method to meet your...

Site News: Popular Posts for the Week of 12.02.2011

Site News: Popular Posts for the Week of 12.02.2011
Popular posts from PHPDeveloper.org for the past week:PHPMaster.com: Localizing PHP Applications "The Right Way", Part 5 AjaxRay.com: The first Kohana book : Kohana 3.0 Beginner's Guide Volker Dusch's Blog: Textual code coverage information for PHPUnit Richard Miller's Blog: Symfony2: Integrating elasticsearch Gonzalo Ayuso's Blog: Playing with the new PHP5.4 features DZone.com: Speed Up Your PHP Like Facebook Karsten Deubert's Blog: Zend_MVC, Controller Plugins and Annotations PHPMaster.com:...

More Than Just Style

More Than Just Style
PHP CodeSniffer is a wonderfully simple tool for implementing and enforcing a coding standard. The basic installation comes with a handful of existing coding standards, like PEAR. One can easily cobble together a coding standard with a subset of sniffs from any of the existing coding standards. It's even fairly simple to write your own sniffs in the event an existing sniff just isn't quite right. Coding standards can be controversial on many levels. Many have argued over which existing standard to use....

Andrew Eddie's Blog: Making the most out of Code Assist in Eclipse/PDT and Zend Studio for PHP

Andrew Eddie's Blog: Making the most out of Code Assist in Eclipse/PDT and Zend Studio for PHP
Andrew Eddie has posted a helpful tutorial for Eclipse users out there showing how to get the most our of code assist in Eclipse PDT/Zend Studio.One of the powerful features of an IDE like Eclipse is the ability for it to "read" your code and give you some assistance about your API as you type. This could include things like class property or methods names, constants, functions, argument lists, and so on. Eclipse/PDT and ZendStudio do this by parsing a PHP class directly, but they also look at your...

PHPBuilder.com: Talking to GitHub with PHP

PHPBuilder.com: Talking to GitHub with PHP
PHPBuilder.com has a new tutorial posted about interfacing with GitHub in PHP, using their API to hook into and pull down information about users and repositories.The Git-based project hosting service GitHub is certainly the belle of today's technology ball, having attracted more than 1 million registered users and amassed more than 2 million hosted projects in less than three years. [...] GitHub High Scores and GitHub Badges are two examples of third-party services created using the GitHub API, which is...

DevShed: Handling File Data with PHP (Reading & Seeking)

DevShed: Handling File Data with PHP (Reading & Seeking)
DevShed has posted the fifth part of their "handling files in PHP" tutorial series today (excerpted from the book "Beginning PHP and PostgreSQL 8: From Novice to Professional") with a focus on read from multiple places in a file to get to different data.In this fifth part of an eight-part series on working with file and operating systems with PHP, you'll learn how to read data from a file and move the file pointer.Example code is included showing how to use the file, file_get_contents, fgetc, fgetcsv,...

Tales of a Coder: DocBlox - Pain Free Documentation

Tales of a Coder: DocBlox - Pain Free Documentation
On the Tales of a Coder blog there's a recent post about DocBlox, an alternative to the usual phpDocumentor for generating automatic documentation, and how it made it "pain free" for his current project.Want to generate documentation for your PHP project, but keep putting it off? Can't be bothered wading thigh deep in documentation, screaming WHY WON'T IT WORK as you try to set it up? Look no further. DocBlox is pain free and you'll be up and running, literally in a few minutes.He includes a guide to...