PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 101 to 120 of 246

Headway Themes is now licensed under the GPLa uhm, no, wait. It isn't. Well, sorta.

Headway Themes is now licensed under the GPLa uhm, no, wait. It isn't. Well, sorta.
Grant Griffiths on split-licensing the PHP code of his themes under the GPL and the images/CSS/JS files under a proprietary license: The split GPL license still allows us to retain enough teeth that we can bite someone in the butt if they violate our own license forAHeadway. I fear that Grant hasn't quite thought this whole affair through. But let's take a look at the HeadwayAToS themselves: All WordPress themes produced by Headway Themes are released under the GPL version 2.0 license...

Should is_array() Accept ArrayObject?

Should is_array() Accept ArrayObject?
Here's a quick question for the wider PHP programming community a if you're writing code that tests for the presence of an array, should is_array() also accept objects that behave like arrays? $testObject = new ArrayObject(array(aTom')); $testResult = is_array($testObject); On PHP 5.3.2, $testResult gets set to false. If you wanted to get an object that behaves like an array past this sort of test, you'd have to write: $testObject = new ArrayObject(array(aTom')); $testResult = (is_array($testObject) ||...

Stefan Koopmanschap's Blog: My privates are not public, they are protected

Stefan Koopmanschap's Blog: My privates are not public, they are protected
Stefan Koopmanschap has spoken up in response to some of the comments about OOP design, specifically in using the private scope in your applications. Overall, Stefan agrees and thinks that this access prevents possible extension which goes against the whole point of writing open source software.I agree with pro-private people that it is important to have a good API design and to use that to protect less experienced developers from making mistakes, however one should never assume that the developers using...

LinuxTag 2010 wrap-up

LinuxTag 2010 wrap-up
As I get ready to head to OSCON tomorrow, I almost forgot about to post about LinuxTag 2010 last month which I gave my aoSugarCRM - Your next business application frameworka talk. I posted a wrap-up piece over on the Sugar Developer Blog about the event, talking my my talk as well as the keynote given by SugarCRM CEO Larry Augustin. It was a great trip, I was able to visit the city and got to meetup with several SugarCRM partners, as well as fellow PHPer Pierre Joye. Thanks to the LinuxTag crew for the...

Zend Developer Zone: Zend_Log timestamp filter

Zend Developer Zone: Zend_Log timestamp filter
On the Zend Developer Zone there's a recent post about a custom filter that's been developed to help filter events based on time instead of just logging them as a whole.For one of my recent project, which is using Zend_Log component of the Zend Framework, I had a demand in which I needed to be able to filter log events based on the time they occurred. As out of the box, Zend_Log component does not have such filter, I decided to create one that will fulfill my demands.The log filter,...

Matthew Turland's Blog: An Update on "Web Scraping with PHP"

Matthew Turland's Blog: An Update on "Web Scraping with PHP"
If you've been looking forward to his book on web scraping from the php|architect publishing group and are wondering about an update on a print copy, Matthew Turland has an update for you.Several people have asked me the same question recently, so I decided to take a blog post to provide an answer. The question is, "When will 'Web Scraping with PHP' be available in print?" Answering requires a bit of background to paint a full picture of where things are now.He mentions delays from the publisher,...

We're Hiring

We're Hiring
I'm looking for a PHP developer to fill a permanent web team lead developer & team leader role, based in Bath in the UK. The role is with Gradwell, a multi-award winning provider of business internet services (we're also one of the top 50 fastest growing UK tech companies according to Deloitte), reporting directly to me in the Engineering department. We have some exciting projects (including a public-facing API) to deliver and the usual challenges of morphing legacy code to solve. If you're interested,...

Ivo Jansch's Blog: Good use of public, private and protected in OO class design

Ivo Jansch's Blog: Good use of public, private and protected in OO class design
In a new post to his blog Ivo Jansch responds to some of the recent comments about scoping in PHP applications with some thoughts of his own (someone spurred on by the Symfony project saying that "private is evil").I don't care much about Symfony as I'm not a user, but it turned to a discussion on OO theory when Stefan defended the position by claiming that you 'should have the right to extend a class's methods if it doesn't support the use case you have'.He also mentions the agreeing opinions of Marco...

ZendCasts.com: Working with ZendX_JQuery

ZendCasts.com: Working with ZendX_JQuery
On the ZendCasts.com site today there's a new screencast posted giving you a bit more information about how to integrate jQuery into your Zend Framework application with the ZendX_JQuery component.I've received a lot of feedback about jQuery integration in the Zend Framework. This little video will show you how you can quickly integrate jQuery and jQuery UI into your Zend Framework project.You can watch the screencast via the in-page player and can grab a copy of the project so you can follow along.

GPL: WordPress, Thesis, web2project, and Beyond

GPL: WordPress, Thesis, web2project, and Beyond
For those of you just tuning into the WordPress/Thesis battle, here is the current - as of 19 July 2010 - state of things: At some point recently, the servers of Chris Pearson - owner and distributor of the Thesis theme for WordPress - had a vulnerability on his server and the latest releases of Thesis were compromised. When that came to light, Matt Mullenweg - head of the WordPress project, founder of Automattic, and founder of the WordPress Foundation - has previous stated that "WordPress Themes are...

aY WordPress and the GPL: the day after

aY WordPress and the GPL: the day after
Last week, I posted an article that pretty much started with aothis is not about a legal interpretation of the GPL.a Therefore, of course, 80% of the people who commented on the article did so to give me their interpretation of the GPL, or to explain why my interpretation was incorrect. So much for that. You are not Perry Mason Let me, once more, explain why the legal interpretation of the GPL has no bearing on the issue at hand before addressing some of the issues that were raised in the comments. The...

Edge Side Includes without Varnish

Edge Side Includes without Varnish
Development on websites when the product will run on a Varnish'ed' production environment can be a pain in the ass. The xml tag that can be used to define Edge Side Includes can't be parsed by a standard browser. While developing you often look at a half rendered website implementation. This is something you really don't want!

PHPSnippets.info: Convert currencies using PHP, Google and cURL

PHPSnippets.info: Convert currencies using PHP, Google and cURL
From the PHPSnippets.info site there's a recent post about using a conversion tool from Google to convert currency values from one type to another.Just a few people know that Google have a built-in currencies calculator. (Just type 100$ in euros in Google search box if you want to test it) This calculator works very well, so what about using PHP and cURL and get this functionnality in your own web app?The script makes a cURL request over to the Google API's calculator feature and passes in the amount to...

Community News: Latest PEAR Releases for 07.19.2010

Community News: Latest PEAR Releases for 07.19.2010
Latest PEAR Releases: PHP_CodeSniffer 1.3.0a1


My privates are not public, they are protected

My privates are not public, they are protected
This week there was an interesting discussion on twitter between several people from the PHP community on the use of access modifiers, and why things should be public, protected or private, or why not. The thing that triggered this was the fact that the new Symfony2 Coding Style disallows the usage of private methods. This discussion earlier on triggered Lukas Smith to post his opinion. I commented there but the comment became thus long that I decided to write a blogpost about it myself.

Red tape and the art of ripping through it

Red tape and the art of ripping through it
It seems like the Symfony2 CS is forbidding the use of private methods. I think other frameworks have similar rules. Now I have argued along those lines myself in the past. But especially talking to the Doctrine2 dev's got me to reconsider .. a bit. This all kinda of reminds me about the discussion over making it a fatal error to change method signatures during inheritance. I love PHP for allowing me to do this, yet giving me an E_STRICT, aka red tape, to make sure I am aware of the kittens that are...


An Update on aoWeb Scraping with PHPa

An Update on aoWeb Scraping with PHPa
Several people have asked me the same question recently, so I decided to take a blog post to provide an answer. The question is, aoWhen will aWeb Scraping with PHPa be available in print?a Answering requires a bit of background to paint a full picture of where things are now. I turned in the manuscript for the book, which had already gone through technical editing, back in April 2009. That's right, 14 months ago. After going through proofreading and layout, having a cover designed, getting an ISBN, and...

Some Thoughts On Software Licensing

Some Thoughts On Software Licensing
This past week saw a huge dust-up over the issue of whether or not WordPress themes are GPL. It's not my goal to rehash the debate, or even to discuss it in particular; instead, my goal is to share some thoughts I've had about software licensing, and in particular, licensing going forward as a result [...]