php exception handling on iis 7

June 10th, 2009

I was recently deploying a PHP site to a client hosting their content with IIS 7. In my code, I typically raise and handle exceptions. My philosophy is simply that exceptions are logical operators like “if”, “then” and “while”. At any rate, when I deployed this code to the production environment, IIS would raise an HTTP 500 exception. This is not ideal.

After hours of desperate searching, I finally found the solution to appropriate exception handling with php on IIS on the iis blog. The solution was more of a footnote about halfway down the page in the php.ini section. The trick is to set fastcgi logging to false. Not the most ideal solution, but I was finally able to handle exceptions the way php code should.

From iis blog: “FastCGI logging should be disabled on IIS. If it is left enabled, then any messages of any class are treated by FastCGI as error conditions which will cause IIS to generate an HTTP 500 exception.”

php.ini

fastcgi.logging = 0 ;

Stuff I'm Working On, web ,

Bryce McDonnell is a Ruby on Rails and PHP web applications developer in Portland, Oregon. Learn More about his company, sites and get online marketing help at brycemcdonnell.com

Improved Content Slider In MooTools

May 27th, 2009

A little while ago, I posted some javascript for a mootools content slider. I’ve used it a lot in my own Ruby on Rails and PHP development work and my work with jv2 I have been itching to just drop it into my code like Squeezebox or Swfobject.

So, here it is, a fairly beta version of a horizontal content slider written with the Mootools 1.2 framework. Simply download (or copy and paste) the ContentSlider class into your page and then instantiate with the required arguments.

Read more…

HowTo, Stuff I'm Working On , ,

Bryce McDonnell is a Ruby on Rails and PHP web applications developer in Portland, Oregon. Learn More about his company, sites and get online marketing help at brycemcdonnell.com

Web 2.0 on a Plane

March 10th, 2009

Kevin Rose, founder at Digg.com was flying from SFO to New York city this morning when he connected to Virgin America’s on board wi-fi connection and began streaming his trip from 30,000 feet.

Utilizing twitter, he sent out a tweet with a link to where people could view his stream. Interacting with the audience of over 700, he gave a quick tour of the plane from his seat, showed his viewers his neighbor and the view from his window.

A very cool interactive experience which shows that the Internet is becoming more ubiquitous all the time.

Kevin Rose U-Streams from a plane

had to share, technology

Bryce McDonnell is a Ruby on Rails and PHP web applications developer in Portland, Oregon. Learn More about his company, sites and get online marketing help at brycemcdonnell.com

Mootools content slider - javascript

March 5th, 2009

This is an old version of an improved Mootools Content Slider

I recently implemented a javascript based slider using MooTools. I’m increasingly becoming a huge fan of Mootools. Their documentation is great and the code I write just seems to be much cleaner. I don’t feel like it’s as fragile as js I’ve written in prototype/scriptaculous.

The content slider, which I pretty much implemented verbatim using Antonio Lupetti’s great tutorial at http://woork.blogspot.com/2009/01/elegant-animated-weekly-timeline-for.html.

Antonio’s tutorial is really great. It is missing two elements which I think improve the code base: Read more…

Stuff I'm Working On , , ,

Bryce McDonnell is a Ruby on Rails and PHP web applications developer in Portland, Oregon. Learn More about his company, sites and get online marketing help at brycemcdonnell.com

Is Facebook Oppressing the Irish?

February 19th, 2009

I write Facebook applications. It’s part of my job. When I show them off to customers, I’m a little uncomfortable adding them as a friend. They don’t need to see the crazy shenanigans of my friends and me. I signed up for my “private” version of Facebook this morning and learned that Facebook officially restricts the Irish.

Facebook hates the Irish

I mean, who else has more than one capital letter in their name?

had to share

Bryce McDonnell is a Ruby on Rails and PHP web applications developer in Portland, Oregon. Learn More about his company, sites and get online marketing help at brycemcdonnell.com