PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 4281 to 4300 of 6889

A MIME type for .php files

A MIME type for .php files
While setting some svn properties at work, we wondered about the correct MIME type for .php files. Looking around in the various magic MIME type detection lists on our unix machines and the official IANA MIME type list . The options we came up with were: text/php text/x-php application/php application/x-php application/x-httpd-php application/x-httpd-php-source MIME type rules Since there is no official MIME type registered at IANA, only an extension type (x- prefixed)...

Voices of the ElePHPant: Brandon Savage & Scott Gordon discuss pros/cons of working with a recruiter

Voices of the ElePHPant: Brandon Savage & Scott Gordon discuss pros/cons of working with a recruiter
In a new episode of the Voices of the ElePHPant podcast, Cal Evans has taken a break from the normal "Three Questions" format of the podcast so far and has instead posted an discussion about recruiters. Brandon Savage and Scott Gordon talk about the pros and cons of working with recruiters.Once I read [Brandon's post on why recruiters are bad for your career], I knew that I needed to get Brandon, and another friend of mine, Scott Gordon - a recruiter for Vaco and serious social media bad-ass - together...

Lorna Mitchell's Blog: Invalid Protected Resource URL in pecl_oauth

Lorna Mitchell's Blog: Invalid Protected Resource URL in pecl_oauth
In a quick post to her blog today, Lorna Mitchell talks about an issue with pecl_outh tat came up during her development of a new API. A strange fatal error message was breaking her connection.I'd gone through all the handshaking steps, got the acces token and was ready to start talking to the service itself. However when I tried to call OAuth::fetch, I got an error message: Fatal error: Uncaught exception 'OAuthException' with message 'Invalid protected resource url, unable to generate signature base...

A roundhouse kick, or the state of PHP

A roundhouse kick, or the state of PHP
Last week the usual round of PEAR-bashing on Twitter took place, then this morning Marco Tabini asked if PHP (core) was running out of scratches to itch. He also suggests he got this idea from Cal Evan's blog post about Drupal forking PHP. http://blog.tabini.ca/2011/04/is-php-running-out-of-itches-to-scratch/ http://blog.calevans.com/2011/04/07/four-reasons-why-drupal-should-fork-php/ [Not submitting to your linkbait.]Pecl and PHPSo first off - moving libraries from the core to an external repository...

Chris Hartjes' Blog: Book Review -- Easy PHP Websites with the Zend Framework

Chris Hartjes' Blog: Book Review -- Easy PHP Websites with the Zend Framework
Chris Hartjes has posted a book review of one of the latest books from Jason Gilmore, "Easy PHP Websites with the Zend Framework" (published March 2011)At 240 pages I wouldn't say this is the type of book that you can really read cover-to-cover at a rapid pace. I think it is more suited as a very long and expanded HOWTO for building an application from scratch. I was also pleased to see that Jason had made the commitment to pushing Test Driven Development by having the reader write tests for the site...

Brian Swan's Blog: Updating PHP Settings in Windows Azure

Brian Swan's Blog: Updating PHP Settings in Windows Azure
Brian Swan has a new post today looking at how you can update some PHP settings in your Windows Azure instance - an alternative to redeploying your every time your php.ini file might need an update.I came across this question on Twitter last week: "How can I turn display_errors on for an application that is running in Windows Azure?" I have to admit that I was stumped. The only thing I could think of was to re-deploy the application with an updated php.ini file. But, I happened to mention this question...

Community News: Latest PECL Releases for 04.12.2011

Community News: Latest PECL Releases for 04.12.2011
Latest PECL Releases: PDO_CUBRID 8.3.1.0003 CUBRID 8.3.1.0006 memcache 3.0.6

News for the symfony2 cmf: Second PHPCR implementation, hackday announcement and PHPCR to become "official"

News for the symfony2 cmf: Second PHPCR implementation, hackday announcement and PHPCR to become "official"
The Midgard Project started to implement the PHPCR interfaces for their content repository. From their website: Midgard is a persistent storage framework built for the replicated world. It enables developers build applications that have their data in sync between the desktop, mobile devices and web services. It also allows for easy sharing of data between users. This prompted us to clean up the separation between phpcr and jackalope. You find now everything that is phpcr in general on...

Invalid Protected Resource URL in Pecl_Oauth

Invalid Protected Resource URL in Pecl_Oauth
I had a funny (funny weird, not funny haha) problem the other day when working with pecl_oauth in PHP to talk to a service. I'd gone through all the handshaking steps, got the acces token and was ready to start talking to the service itself. However when I tried to call OAuth::fetch, I got an error message: Fatal error: Uncaught exception 'OAuthException' with message 'Invalid protected resource url, unable to generate signature base string' There are two things to notice about this. The first one is...

Spatial Indexes: MySQL

Spatial Indexes: MySQL
Spatial Indexes: MySQL London, UK Tuesday, April 12th 2011, 09:04 BST In two previous articles I introduced The spherical Earth model and importing data into SQLite for querying geographical data. In this article we're going to have a look at importing the data into MySQL and finding out how to best store and query spatial data in the databases. MySQL MySQL has some support for Spatial Extensions, but it's not particularly useful. For example, there is no way to query anything within the radius...

Spaz Hackathon at the PHP Community Conference

Spaz Hackathon at the PHP Community Conference
I'm really excited to announce the next Spaz Hackathon, taking place at the PHP Community Conference in Nashville, TN on April 21 from 5:30p-10:00p EDT (tenatively). It will be part of a larger social tech hackathon sponsored by Tropo. Food and drink (non-alcoholic) will be provided. We will have awesome swag provided by the HP webOS dev relations team and Appcelerator, and we'll be giving away 2 unlocked GSM Pre 2 smartphones to the top two Spaz contributions. It's super exciting.As this is a...

Cal Evans' Blog: Four reasons why Drupal should fork PHP

Cal Evans' Blog: Four reasons why Drupal should fork PHP
In a recent post Cal Evans shares his opinion on why he thinks the Drupal project should fork PHP and what benefits he sees for them in doing it.Obviously moving the functionality [of Drupal] - not to mention the existing userbase - to a new language would be a herculean task; but what if the new language was just a version of the old. What if Drupal forked PHP and began working on its own version? With that thought in mind, I began to think hard about reasons they would want to do this. Here are the...

Keith Casey's Blog: Developer Smackdown #46 on Community

Keith Casey's Blog: Developer Smackdown #46 on Community
In a new post to his blog Keith Casey links to a Developer Smackdown (episode #46) that he participated in while down at SXSW in Austin.Last month I attended SXSW for the third time. In addition to having a good time and meeting up with friends & colleagues, I had the chance to be a guest on Developer Smackdown to talk about Community and the similarities and differences between them in the PHP and .Net Communities.You can listen to the recording here - "Unicorn Rhinos, Mexican Martini's, and 2 My Style...

Announcing the Web Services and Context Core Initiative

Announcing the Web Services and Context Core Initiative
At DrupalCon Chicago, Dries announced that the development process for Drupal 8 would be a bit different. Rather than a vast dog pile of efforts to improve Drupal in ways big and small, Drupal 8 will feature a number of major "core initiatives". These initiatives highlight major areas of work that represent not just a patch or three but major changes to Drupal's plumbing. Each initiative will have one or two initiative leads who have the ability to coordinate and make decisions relating to that...

Phil Sturgeon's Blog: Why Write A New Framework?

Phil Sturgeon's Blog: Why Write A New Framework?
Phil Sturgeon, a developer on the Fuel framework project, has a new post to his blog asking a common question of all developers that set out to make the "Next Big Framework" - why write a new framework?So we all know that the internet is full of frameworks. They've been the popular thing for the last 5 or 6 years and it seems to have become the "barrier for entry" or the "passage of rights" that 8 or 9 years ago used to be "hey I just wrote a phpBB clone!". There are plenty around but in this day in age,...

PHP Components: Shipping Data Files With Your Components

PHP Components: Shipping Data Files With Your Components
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components. I'm now going under the bonnet of our components, and looking at the different file roles that the PEAR installer expects to find when we distribute our component as a PEAR-compatible...

RooJs.com: How to spam in PHP..

RooJs.com: How to spam in PHP..
On RooJs.com there's a recent post from Alan Knowles looking at how to spam in PHP. No, nothing malicious - it's more about scalability in sending emails from PHP applications.The reason this has been relivant in the last two weeks is two fold, first off, my slow and sometimes painfull rewrite of mtrack has got to the point of looking at email distribution. Along with this I have a project that needs to distribute press releases, and track responses. Since both projects now use the same underlying...

When Google controls the interneta

When Google controls the interneta
I'm not a google fanboy (although I do use a lot of gmail and picasa some) - I'm also more than a bit wary about the amount of info they control and manage about me and others. That said, I was reading up on SPDY this morning, and a curious thought struck me. For those of you old enough to remember the late 90s and the abrowser wars', IE was becoming the dominant browser. I remember hearing a rumor that IE was given preferential treatment with IIS servers - meaning that if you used IE against an IIS...

Query7.com: Why You Should Be Using A PHP Framework

Query7.com: Why You Should Be Using A PHP Framework
On the Query7.com blog, Logan has posted his opinion on how you should be doing your development on sites that are more than just one or two pages - you should be using a framework.Frameworks should be used when constructing web applications. Any application that involves a database, forms, sessions, cookies or a remote service (such as Twitter or Facebook) will benefit from being powered by a framework. There is no need to use a framework for a website that has only one or two pages, nor for command...

Courtney Robinson's Blog: Apache Cassandra+PHPcassa+Code Igniter = large scale PHP app in 5 minutes

Courtney Robinson's Blog: Apache Cassandra+PHPcassa+Code Igniter = large scale PHP app in 5 minutes
In a new post today Courtney Robinson shows how the combination of Cassandra, PHPcassa and CodeIgniter can be used to create a large scale PHP application in five minutes .I'm working on a new project, migrating an existing site using custom code with a very monolithic design on top of MySQL. Design goals : Implement all the same functionality using a manageable framework with a small footprint on a distributed NoSQL database. Small footprint? I'm thinking Code Igniter (CI)...Distributed NoSQL (my...

Latest PHP Tweets