TobyInkster.co.uk

Blog for Tuesday, 29th January 2008

29/01/2008: Looking Ahead to PHP 6

This is my look at what’s planned for the forthcoming revision to the PHP language.

Removal of Deprecated Features

PHP 6 includes a lot of tidying up, removing features of the language that have caused annoyance, confusion and security headaches. Although these changes are too numerous to list here, and the list will probably change before the official release, here are three of the major ones:

  • PHP has for some time included two different regular expression libraries: POSIX Regex and PCRE. PCRE is both faster and more capable, so in PHP 6, the POSIX Regex library will be removed from the PHP core and exist only as an optional extension.
  • PHP includes a feature called register_globals, which automatically creates global variables for any data provided to a script through an HTTP
Filed under: , , .

29/01/2008: Chicken & Chorizo Pasta

Ingredients

  • 2 skinless chicken breast fillets
  • 100g Spanish chorizo sausage, chopped
  • 150g dried penne or similar dried pasta
  • 1 red pepper
  • 1 yellow pepper
  • 3 cloves garlic, finely chopped
  • small handful parsley, chopped
  • 2 tsp paprika
  • 1 tbsp olive oil

Method

Chop each pepper into 4–6 sections, discarding the stalks and seeds. Grill the chopped pepper, skin side up until the skin is charred and blackened. Place the grilled peppers in a plastic bag, seal and set aside to cool.

Prepare the pasta according to the directions on the packet.

Meanwhile, finely chop the chicken. Fry in olive oil until brown and then add the chorizo and garlic.

When the peppers have cooled enough to be handled, remove from the bag. Peel off the charred skins and discard. Chop the flesh of the peppers and add it to the chicken and chorizo. Also, add the paprika and stir well.

Once cooked, drain the pasta. Add the parsley and pasta to the chicken and chorizo mixture and stir together. Heat through and serve.

Filed under: , , , .