Posts Tagged ‘PHP’

PhpDelicious - a wrapper class for the del.icio.us API

Wednesday, April 9th, 2008

PhpDelicious is a PHP 5 library for accessing the del.icio.us API. It combines data from the main REST and JSON APIs and presents a consolidated interface.

No 404 page when using a static front page

Friday, April 4th, 2008

I was setting up a wordpress blog (latest version, 2.5) a couple of days ago, and added the great plugin Google XML Sitemaps. I wanted a static frontpage with a couple of blog posts below it, so I modified the Kubrick theme a bit (added another template to use for that page, no biggie).

When taking a look at Google Sitemaps (somewhere under Google Webmaster Tools) I found that Wordpress didn’t respond to non-existing pages with a 404 not found, but all my pages after each other, rather like the posts on a dynamic front page.

Again I thought - no biggie! I modified the 404.php template to begin with the following:

<?php
ob_start();
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
...

Still, no luck. Then I saw that Wordpress didn’t even read the 404.php page! I tried turning off the static front page and voilà, 404 works okay again.

I’ve searched a bit for this in the Wordpress forums, but I’ll report a bug ticket for them. Hopefully it will work in the next release :)

Newsflash:

It only works this way if you haven’t chosen a “Posts page”. Maybe it’s just an undocumented feature?

Hardened-PHP Project - PHP Security - Suhosin

Tuesday, April 1st, 2008

Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core.

Symfony development with XAMPP on Windows

Tuesday, April 1st, 2008

This is how I set up my windows laptop for development with Apache/MySQL/PHP/Symfony (XAMPP with Symfony).

  1. Download XAMPP Installer package.
  2. Install XAMPP - this is really just a case of next -> next -> okay.
  3. Since I’m not only using my laptop for development I chose not to start any services except for XAMPP when windows starts.
  4. Start (from XAMPP Control Panel) Apache and MySQL (and whatever other services you need).
  5. Add PHP to your PATH.
    1. Right-click “This Computer”, choose properties.
    2. Advanced tab -> Systam variables (not sure, my system is in Swedish ;) )
    3. Add C:\xampp\php;C:\xampp\mysql\bin (if installed in default location) to the PATH variable.
  6. Upgrade Pear - pear upgrade pear
  7. Find Symfony - pear channel-discover pear.symfony-project.com
  8. Install Symfony - pear install symfony/symfony
  9. Done! Start playing around…

exuberant ctags with PHP in Vim - phly, boy, phly

Monday, March 31st, 2008

Vim Productivity Tips for PHP Developers - phly, boy, phly

Monday, March 31st, 2008

eGroupWare: Home

Thursday, February 21st, 2008

PHProjekt :: an open source groupware suite

Thursday, February 21st, 2008

James McGlinn » Symfony HTTP Authentication Filter

Tuesday, February 5th, 2008

phpUnderControl

Friday, January 18th, 2008