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)...
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,...
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...
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....
Recent releases from the Packagist:guzzle/guzzle (v3.0.6)
ladela/personal-translations-widget-bundle (v0.2.2, v0.2.1, v0.2)
Latest PEAR Releases:
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,...
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 [...]
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...
Recent releases from the Packagist:robmorgan/phinx (v0.1.6)
3rdpartyeve/phealng (0.2.3, 0.2.2, 0.2.1, 0.2.0)
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...
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)
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...
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...
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...
Recent releases from the Packagist:foolz/sphinxql-query-builder (0.8.5, 0.8.4)
zircote/rhubarb (0.0.2, 0.0.1)
rcrowe/twigbridge (v0.0.6, v0.0.5, v0.0.4)
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...
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...
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.
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...