April 17, 2007

Zend Core 2.0 does not work with PEAR

Trying to install Zend Platform 3 for Windows I was surprised to see that it requires Zend Core 2.0 now. Ok, so it removed my installation of XAMP to give this one a try.

Unfortunately the trial ended soon. My first step after running the installer was to try to install some PEAR packages using go-pear, which does not work. Problem reports and a workaround can be found in the Zend forum.

PS: The sad part is, that this problem was already reported with the beta version of Zend Core. But apparently PEAR is not that important to Zend, so this error still exists in the final version as well.

March 16, 2007

Online-Beantragung Feinstaub-Plaketten (Update)

Die Stadt Stuttgart bietet seit dem 1. März die Möglichkeit online Feinstaub-Plaketten zu beantragen. Ab dem 1. Juli 2007 müssen alle Fahrzeuge, die in die Umweltzone Stuttgart fahren möchten eine solche Plakette haben.

Während zu Beginn nur für Fahrzeuge mit Stuttgarter Kennzeichen Plaketten beantragt werden konnten, wurde diese Beschränkungen inzwischen aufgehoben und es können bundesweit für in Deutschland zugelassene Fahrzeuge Feinstaub-Plaketten beantragt werden.

Pressemeldung auf www.stuttgart.de: Feinstaubplaketten per Online-Antrag

March 13, 2007

IE Javascript event nightmare

I thought it would be nice to disable a forms submit button once it was pressed once to prevent impatient users from clicking again and again if the post might take longer as expected.

<input type="submit" value="Send" onclick="this.disabled=true"/>

But as I noticed IE6 doesn’t like that. After disabling the submit it cancels the submit of the page - leaving the user on a page with a disabled submit button. How great is that ?

The solution:

After disabling the button you have to submit the form using JavaScript.
So the buttons HTML code now looks like this:

<input type="submit" value="Send"
onclick="this.disabled=true;document.myform.submit()"/>

March 1, 2007

Ajax & DHTML showroom

MinAjax is a great showroom for all the nice things you can add to a website.

My personal favorites are:

  • Prototype window
  • Bubble tooltips
  • Really Easy Field validation with Prototype
  • HighSlide JS

February 15, 2007

FirePHP

If Firebug impoved the way you do your web development (I bet it did) - and you do this with PHP, you might want to follow the FirePHP project. It brings the Firebug goodness into the PHP world.

January 11, 2007

ezComponents Graph

Most PHP developers may know (or have used) JPGraph for creating chart images in PHP. Now there is a new player in the game:

ezComponents now has its own Graph component. The tutorial shows some impressive examples. Besides that there is an introductory  article by Kore Nordmann about the component.

December 21, 2006

Web 2.0 Generators

Building a so-called “Web 2.0″ application ?

Then you definitely need:

If you know of any other generators please let me know.

December 7, 2006

Query string in rewrite rules

Using more and more rewrite_rules to clean up the URL mess in applications I was wondering how to rewrite an URL like:

/item/view/123?debug=1

to

/index.php?objecttype=item&id=123&debug

My latest approach was to use:

RewriteRule ^([a-z]*)/([0-9]*)$ /index.php?objecttype=$1&id=$2

which unfortunately would ignore the debug parameter.
After looking through the manual again I found the QSA (query string append) option. So now my rule now looks like this:

RewriteRule ^([a-z]*)/([0-9]*)$ /index.php?objecttype=$1&id=$2 [QSA]

November 24, 2006

Statistic graphs with PHP and Flash

If you need to display really nice statistics to your users and are a friend of eye candy have a look at the PHP/SWF Charts module.

Using this library it took me less than one hour to set up a graph like this:

SWF Stats

PS: From all I can see WordPress.com is using this library in the admin section to display the blog stats.

November 24, 2006

Firefox: Focusing popup windows

If you find the code snippet:

<body onload="self.focus()">

not work in Firefox 2, this is not a bug. Firefox has an advanced Javascript option called “Raise or lower windows” which is deactivated by default. You may find this option under:

  • Tools
  • Options…
  • Content tab
  • Advanced button next to “Enable JavaScript”

Firefox advanced javascripts options

Once enabled the above code will work again. But only on your Firefox. So you might want to rethink if that popup stuff is really what your users want ;-)