Yesterday, I saw this tweet:
@lornajane @nabeels tips on starting to write an API to interact with Smartphone App?? :-s
On 2-5-2012 12:48:53
from Twitter for Mac
in reply to Lorna Mitchell
I have lots of advice for Olly (whom I know personally) but there's no way it will fit into a tweet! So here it is, in rather longer form :)
Whatever data format you pick, whatever app you are building, whichever approach you choose, be consistent. Your whole API should call...
Christopher Kunz is trying out the new web acceleration tool Google recently released (SPDY) when his site is served under HTTPS (warning, self-signed cert).The reason this posting lands in the PHP category is that I want to have a playground testing PHP applications with mod_spdy. Currently (and probably also in the future), this machine uses mod_php instead of php_(f)cgi(d) - this is not recommended for interoperation with mod_spdy. To test the real-life impact of the possible thread safety issues, I...
Here's what was popular in the PHP community one year ago today:PHPBuilder.com: Building Web Apps with the Limonade PHP Framework
DevShed: 7 PHP Frameworks Tested For Speed - Benchmarking PHP Frameworks
Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 1
Symfony Blog: Symfony2: Getting easier (Parts 2 & 3)
Script-Tutorials.com: Creating a Modern Looking Animated Login System in PHP
Chris Aitchison's Blog: You are NOT a Software Engineer!
Community News: Dutch PHP...
There is a vulnerability in certain CGI-based setups that has gone unnoticed for at least 8 years. Section 7 of the CGI spec states: Some systems support a method for supplying a [sic] array of strings to the CGI script. This is only used in the case of an `indexed' query. This is identified by a "GET" or "HEAD" HTTP request with a URL search string not containing any unencoded "=" characters. So requests that do not have a "=" in the query string are treated differently from those who do in some CGI...
In his previous post Sebastian G√∂ttschkes introduced a set of classes you could use for different types of testing in your Symfony2 applications. In his most recent post he expands on these examples, giving the UnitTestClass an extra ability.In one of my last articles on Testclasses for symfony2 I explained some of the classes I use for my tests. Since then I found a great article on metatesting and want to update my UnitTest class to show some practical examples.His update allows the class to access...
In this new post to the GotoTech.com blog Eric Burns talks about a way he's "tamed Doctrine's 2000 flushes" with a wrapper around the EntityManager to make controlling the database flushes simpler.For my project I decided to use the Doctrine 2 ORM to manage my data layer. We also use this at work, so the biggest reason I chose this was to be able to learn more about Doctrine to help me in my job. But this decision also makes sense for my project because my entity relationships will likely be fairly...
Kevin Schroeder has a new post in his series looking at dependency injection in Zend Framework v2 applications. In this new post he shows how to work with setter injections that coordinate to properties in the class.In a previous article I showed how you could pass in a fully qualified parameter name into the Dependency Injection Container (DiC) if you needed to be specific about where you need to have something injected. There is an alternate method here that is cleaner than what I did before.He...
This website (as long as you access it via HTTPS) is now serving pages with SPDY, Google's still-experimental web acceleration protocol. Since SPDY mandates usage of SSL, I am using a CACert certificate to serve up pages. If you want to know why I didn't buy a CA-signed certificate, please see this talk for a couple thoughts: SSL and the future of web authentication (PDF)
The reason this posting lands in the PHP category is that I want to have a playground testing PHP applications with mod_spdy....
On the MaltBlue.com blog today there's a new post about a new podcast that's in the works targeted at PHP developers working on cloud-based applications - the PHP Cloud Development Podcast.You've watched RailsCasts, you've watched ZendCasts - but what about screencasts for PHP Cloud Development techniques? Well, we were surprised to find that there was nothing, yet, available to satisfy that need. There's cloud development casts for .Net developers and presumably for Java developers as well. But not much...
Vertical DegradA© Image
Simple REST Library
Simplices XML into Array
DB MySQL Class
ApPHP Data Validator
PHP Highlight script
On the Voices of the ElePHPant podcast, the latest episode has been released - FIG, PUD & FOMO, a discussion with members of the PHP Standards Group: Matthew Weier O'Phinney, Jeremy Lindblom and Paul Jones.Cal's questions center around the Standards group and what kinds of discussions they have about the language and the progress the group has made so far (like PSR-0):
What's the purpose of the group?
Is the purpose of this group to take PHP from everyone's hands and enforce the "one true grace" on...
Court Ewing has a new post to his blog describing some of the most common cryptic errors that you might come across in your day-to-day development.If you've been programming for awhile, then you've probably experienced your fair share of cryptic error messages. It's understandable that building in detailed error messages that are clear to even novice developers is not always a high priority for programming languages when there are so many other features to create and issues to address. The PHP language...
On the ServerGrove blog there's a new post that helps to bridge a gap between Symfony PHP developers and the designers that might be working with the result of their hard work. The post shares solutions to four common problems the designer might have.For designers, Symfony2 has been a welcome change from those old flat PHP files. Twig is beautiful, the framework separates the code from the layout, and we no longer have to find our way through lines of PHP code. But if you are a designer working on a...
PHPMaster.com has a new tutorial posted today (by George Fekete) about preventing cross-site scripting attacks in your PHP-based applications.Unfortunately, cross-site scripting attacks occurs mostly, because developers are failing to deliver secure code. Every PHP programmer has the responsibility to understand how attacks can be carried out against their PHP scripts to exploit possible security vulnerabilities. Reading this article, you'll find out more about cross-site scripting attacks and how to...
Rob Allen has a new post (a quick introduction) about working with the unit tests in the Zend Framework (version 1), how to get PHPUnit working and execute the tests.As part of our release process for Zend Framework 1.12, I've been working through the unit tests and running them on PHP 5.2.4 as it seems that recent changes weren't being tested with that version. This isn't totally surprising as Open Source contributors are, almost by definition, interested in new things and so are much more likely to be...
Kevin Schroeder has a quick new post with a one-liner you can use to get remote debugging working with Zend Debugger and PHPUnit.I'm trying to do some remote debugging with PHPUnit on a remote system. I was following the rules I had written about in a previous article but for some reason I could not get path mapping to work. So I figured I'd ping the Studio lead developer because as soon as I did that I'd get it to work. Well, that's what happened.His fix comes in the form of setting a command-line...
Matthew Weier O'Phinnney has a new post to his blog filling in some additional details behind a series he's been doing on modules in the Zend Framework v2 releases. In this new post he answers the question "why modules?"I've blogged about getting started with ZF2 modules, as well as about ZF2 modules you can already use. But after fielding some questions recently, I realized I should talk about why modules are important for the ZF2 ecosystem.He covers some of the history of the idea, starting with the...
Latest PECL Releases:
Matthew Weier O'Phinney's Blog:http://mwop.net/blog
Jeremy Lindblom's Blog:http://webdevilaz.com/
Paul M. Jones' Blog:http://paul-m-jones.com/
Matthew Weier O'Phinney on Twitter: @weierophinney
Jeremy Lindblom on Twitter: @jeremeamia
Paul M. Jones on Twitter: @pmjones
PHP Standards Working Group