PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 181 to 200 of 242

David Müller: Cross Domain AJAX Guide

David Müller: Cross Domain AJAX Guide
In his latest post David Müller covers some of the things to consider when working with cross-domain ajax requests including CORS and iframes.As it is widely known, AJAX Requests are only possible if port, protocol and domain of sender and receiver are equal. [...] Having this cleared out, we will cover ways around this restriction.He covers three main approaches to allowing these cross-domain requests (and some of the security implications that can come with them): CORS (Cross Origin Resource Sharing)...

Brandon Savage: Private Methods Considered Harmful ("Do This, Not That" Excerpt)

Brandon Savage: Private Methods Considered Harmful ("Do This, Not That" Excerpt)
A while back Brandon Savage mentioned a book he was writing ("Do This, Not That") to help PHP developers learn some of the best practices associated with the language. Today he's posted an excerpt from the book for your enjoyment.This great series of highly focused e-books will offer tips, tricks and best practices focused on core areas of PHP development, including databases, security, filtering, regular expressions, configuration and more. Since it will be a series of tightly targeted solutions,...

PHPClasses.org: Lately in PHP, Episode 30 - Will PHP 6 feature a JIT compiler?

PHPClasses.org: Lately in PHP, Episode 30 - Will PHP 6 feature a JIT compiler?
On the PHPClasses.org site they've posted the latest episode of their "Lately in PHP" podcast series - Episode #30, "Will PHP6 Feature a JIT compiler?"Now that Facebook made some progress with their PHP HipHop VM JIT compiler engine, some PHP core developers are considering having also a JIT compiler implementation of the official implementation based on LLVM, eventually in PHP 6. [...] They also commented on the first alpha release of PHP 5.5.0, proposals for having pure interfaces in the PHP core, the...

PHPMaster.com: Inversion of Control - The Hollywood Principle

PHPMaster.com: Inversion of Control - The Hollywood Principle
In this new tutorial on PHPMaster.com, Alejandro Gervasio looks at the Inversion of Control methodology and how it's more than just an abstract reference to dependency injection.Traditionally, application components have been designed to operate on and control the execution environment, an approach that delivers well to some extent. [...] Instead of making the module completely responsible for logging data to multiple endpoints, we can transfer the responsibility straight to the external environment....

Community News: Packagist Latest Releases for 12.10.2012

Community News: Packagist Latest Releases for 12.10.2012
Recent releases from the Packagist:guzzle/guzzle (v3.0.6) zumba/symbiosis (v1.1.5) vojtech-dobes/nette-forms-inputlist (1.0.0) pascalc/tinyl10n (0.6) symfony-cmf/routing-extra-bundle (1.0.0-alpha2) symfony-cmf/routing (1.0.0-alpha3) ladela/personal-translations-widget-bundle (v0.2.2, v0.2.1, v0.2) manymules/marionettejs-bundle (1.0.0-rc1) cloudlib/Cloudlib (0.3.0) cloudlib/core (0.3.0) slim/sessions (0.1.0) netpositive/discriminatormap-bundle (v2.0.1)

Community News: Latest PEAR Releases for 12.10.2012

Community News: Latest PEAR Releases for 12.10.2012
Latest PEAR Releases: Console_Table 1.1.5 PHP_CodeSniffer 1.4.3

Will PHP 6 feature a JIT compiler? Lately in PHP podcast episode 30

Will PHP 6 feature a JIT compiler? Lately in PHP podcast episode 30
Will PHP 6 feature a JIT compiler? Lately in PHP podcast episode 30 By Manuel Lemos Now that Facebook made some progress with their PHP HipHop VM JIT compiler engine, some PHP core developers are considering having also a JIT compiler implementation of the official implementation based on LLVM, eventually in PHP 6. That was one of the main topics discussed by Manuel Lemos and CAsar Rodas in the episode 30 of the Lately in PHP podcast. They also commented on the first alpha release of PHP 5.5.0,...

Private Methods Considered Harmful

Private Methods Considered Harmful
The following is an excerpt from a draft version of Do This, Not That: Object Oriented Development. Sign up today to be the first to get a copy this week! A few weeks ago, I was tasked with integrating a library that was designed by someone else. This library was intended to access APIs and [...]

Dealing with Email Image Blocking

Dealing with Email Image Blocking
You probably get a lot of email and even more newsletters. My html email newsletters are all mixed in with my plain-text emails, and when I'm going through my inbox, it's a quick and efficient process. I want to be able to get the point of each email quickly. When I open an html email and see rows of blank outlined boxes, I immediately think, aothis isn't relevant or necessary to me; moving on.a I very rarely decide to turn the images on. One alarming statistic found that 30% of recipients are unaware...

Community News: Packagist Latest Releases for 12.09.2012

Community News: Packagist Latest Releases for 12.09.2012
Recent releases from the Packagist:robmorgan/phinx (v0.1.6) lstrojny/fxmlrpc (0.3) tala/tala-payments-authorizenet (v0.1.0) dhorrigan/db-wrapper (1.0.0) lankit/jquery-bundle (v1.8) tala/tala-payments-core (v0.1.0) christiaan/emailfeed (0.1) djordje/li3_recaptcha (v1.0.0) matthimatiker/molcomponents (1.4.3) 3rdpartyeve/phealng (0.2.3, 0.2.2, 0.2.1, 0.2.0) christeredvartsen/php-bittorrent (0.3.0) sweikenb/php-library (1.0.0) foolz/sphinxql-query-builder (0.8.6) clio/clio (0.1.4)

Make a Difference

Make a Difference
I remember that particular day, driving home from my job at Apple Computer, talking to a friend on a cell phone the size of small brick. I asked him how to get files onto a server so they show up at a given domain. I was looking for a new career path and web development seemed really interesting, but admittedly I had no idea how any of it worked. He told me about something called FTP and, while sitting quietly in the parking lot that the 237 had become, my tiny mind went poof. Black magic. It's hard for...

Community News: Packagist Latest Releases for 12.08.2012

Community News: Packagist Latest Releases for 12.08.2012
Recent releases from the Packagist:axelitus/acre-net-http (v0.5.0) pocketrent/silverstripe-twitter (1.1, 2.0) granula/twig (v1.0.2, v1.0.1) granula/config (v1.1.3, v1.1.2, v1.1.1, v1.1, v1.0) bcen/yauc (0.0.5) isidromerayo/simple_php_skeleton (v0.9) granula/app (v1.0) granula/controller (v1.0) granula/granula (v1.0) sybio/image-workshop (2.0.0) granula/router (v1.0) liuggio/statsd-client-bundle (v1.2.3) pascalc/php-properties (1.0) alcaeus/liquibase (1.0.0) phpmo/phpmo (v0.1) devster/ubench (1.1.1,...

The Anti-Spec Movement Is Going Too Far

The Anti-Spec Movement Is Going Too Far
As a designer, I have nothing against the anti-spec movement. Created in response to speculative work (i.e., work commissioned with the possibility of payment but no guarantee) and crowd-sourcing (e.g., design contests which reward only one winner), the anti-spec community has been protecting designers' right to be paid for the work that they do. However, the movement has been going too fara-aexpanding to cover every kind of design contest and groups where design and art are created for fun, not just...

Paul Jones: How Is Aura Better Than (er, Different From ;-) Than Symfony and Zend?

Paul Jones: How Is Aura Better Than (er, Different From ;-) Than Symfony and Zend?
In this new post Paul Jones has reprinted an interview he did with PHP Magazin about the recent 1.0 release of the PHP framework project he is a lead on - the Aura project.I did an email interview with the folks at PHP Magazin; their German version is here. What follows is our original email exchange in English.They talked about some of the core principles behind the framework, its origins from the Solar framework, the team's "libraries first, framework second" methods and its push to be a PHP...

Chris Jones: Adding DTrace Probes to PHP Extensions

Chris Jones: Adding DTrace Probes to PHP Extensions
In a new post to his site (related to the topic of this previous post) Chris Jones shows you how to setup and use DTrace support in your PHP installation for enhanced debugging abilities.The powerful DTrace tracing facility has some PHP-specific probes that can be enabled with --enable-dtrace. DTrace for Linux is being created by Oracle and is currently in tech preview. Currently it doesn't support userspace tracing so, in the meantime, Systemtap can be used to monitor the probes implemented in PHP. This...

Community News: Packagist Latest Releases for 12.07.2012

Community News: Packagist Latest Releases for 12.07.2012
Recent releases from the Packagist:foolz/sphinxql-query-builder (0.8.5, 0.8.4) monga/monga (0.2.0) zircote/rhubarb (0.0.2, 0.0.1) zircote/uuid (0.1.0) isidromerayo/simple_php_skeleton (v0.8) silverstripe/newsletter (0.5.0) endroid/twitter-bundle (v1.1) endroid/twitter (v1.1) dflydev/apache-mime-types (v1.0.0) manymules/foundation-bundle (3.2.3) zendserverapi/zendserverapi-phing (0.0.1) rcrowe/twigbridge (v0.0.6, v0.0.5, v0.0.4) goodby/csv (1.0.0) pyrocms/lex (2.2.0) bcen/yauc (0.0.4) fuel/lex (2.2.0)...

Site News: Popular Posts for the Week of 12.07.2012

Site News: Popular Posts for the Week of 12.07.2012
Popular posts from PHPDeveloper.org for the past week:Phil Sturgeon: Why some people hate PHP Paul Jones: Aura: First 1.0.0 Stable Library Releases! Community News: PHPKnowHow.com - PHP in Plain English Community News: Packagist Latest Releases for 12.01.2012 Community News: Packagist Latest Releases for 12.02.2012 Richard Rodger: Why I Have Given Up on Coding Standards Scott Mattocks: C is for Configurable Site News: Popular Posts for the Week of 11.30.2012 Community News: Packagist Latest Releases for...

Adding DTrace Probes to PHP Extensions

Adding DTrace Probes to PHP Extensions
The powerful DTrace tracing facility has some PHP-specific probes that can be enabled with --enable-dtrace. DTrace for Linux is being created by Oracle and is currently in tech preview. Currently it doesn't support userspace tracing so, in the meantime, Systemtap can be used to monitor the probes implemented in PHP. This was recently outlined in David Soria Parra's post Probing PHP with Systemtap on Linux. My post shows how DTrace probes can be added to PHP extensions and traced on Linux. I was using...

PHP Town Hall Podcast: Episode #2 - Talk about PHP 5.5

PHP Town Hall Podcast: Episode #2 - Talk about PHP 5.5
The latest episode of the PHP Town Hall podcast has been release - Episode #2, "a Node Hipster, Beardy Python Fan, PHP Contributor and a Bristolian Talk About PHP 5.5"We're back for an "IRL" episode, with Zack Kitzmiller, John Crepezzi and Anthony Ferrera, discussing PHP 5.5 and the new features it will bring.You can listen to this latest episode through the in-page player, by downloading the mp3 or by subscribing to their feed to get the latest as they're released.

NetTuts.com: Expressive Tests with Hamcrest

NetTuts.com: Expressive Tests with Hamcrest
On the NetTuts.com site today there's a new tutorial introducing the Hamcrest validation matchers and how to use them in your PHPUnit testing to enhance both the readability and functionality of the assertions.Hamcrest is a set of matchers for writing more expressive code. It just so happens that these matchers are especially useful when writing tests. In this article, we'll look at Hamcrest for PHP. [...] Hamcret's expressiveness originated with JMock, but it wasn't until the addition of the unique...