Setting up command-line PHP on Windows

Tags:

On *nix systems you usually have the php executable available in shell, so you can run command-line scripts like unit tests and such, but on Windows this isn’t usually the case. Let’s fix that! There’s two ways to do this: Temporary and permanent

Opera UserJS competition

Tags:

Opera recently held a UserJS competition, where I participated with a script that makes Google Spreadsheets work in Opera, a script which improves Apache directory listings and a social bookmarking site toolbar. Opera chose my Google Spreadsheets script as the winner of Site Fixes category, and I will be receiving a shiny new HTC Touch Diamond phone with Opera 9.5 …

On template “tag soup”

Tags:

Jeff Atwood’s latest post (at the time of writing this) talks about mixing HTML markup and server-side code, àla <table> < ?php foreach($foo as $bar): ?> <tr> <td>< ?php echo $bar; ?></td> </tr> < ?php endforeach; ?> </table><table> < ?php foreach($foo as $bar): ?> <tr> <td>< ?php echo $bar; ?></td> </tr> < ?php endforeach; ?> </table> He also throws in …

Is Smarty really obsolete?

Tags:

There was a short discussion on Zend Framework general mailing list about Smarty being obsolete. I decided to take my opinion here, since the discussion was getting quite off-topic… Arguments against Smarty presented were mainly the facts that it is PHP4 and its no longer necessary in “modern” web development. Note: This post was written in 2008.. Although the points …

How to make back, forward and reload work in Ajax-based apps

Tags:

With Ajax apps getting more and more popular, there’s often the question of the browsers own controls working or not in the app in question. If you hit reload, you might end up back on the start page of the application, if you hit back.. who knows. I think this is especially an issue in applications, where you would work …

Does Google test with just IE and Firefox?

Tags:

Ever tried using Google Spreadsheets with something else than IE or Firefox? Yeah, it doesn’t work very well… Docs used to be the same, but at least something is getting better… However, the issue in Spreadsheets that stops it from working in Opera 9.5 is ridiculously simple! The JavaScript function which tells you they only support IE and Firefox, and …

Automating creation and caching of image thumbnails

Tags:

The other day I needed to create some thumbnail images. You know, the usual stuff: Admin uploads image, needs it resized to a smaller one for preview or such… I thought, why bother with writing code manually in the admin to create the thumbnail? I mean, the requirements for its size might change, the path to thumbnails might change… The …