PHP 5.1 released

Die Final-Version von PHP 5.1 wurde am 24.11.2005 veröffentlicht. Der ausführliche Changelog findet sich hier.

Neben diversen Bugfixes und Performanceverbesserungen dürfte der Datenbankzugriff via PDO zur grössten Neuerung gehören.

Download ist von hier möglich.

Python HTML Scraper

„A simple HTML ‚parser‘ that will ‚read‘ through an HTML file and call functions on data and tags etc.
Useful if you need to implement a straightforward parser that just extracts information from the file *or* modifies tags etc.

Shouldn’t choke on bad HTML.“

Python HTML Scraper

Python HTML Scraper

eAccelerator 0.9.4 RC1 veröffentlicht

Still und heimlich wurde am 20.11. die Version 0.9.4 Release Candidate 1 vom eAccelerator veröffentlicht.

Kommtar zu dem Release

Das ist ein Bugfix-Release, welche die Stabilität des eAccelerator’s erhöhen soll. Wir rufen dazu auf, damit zu spielen.

Weitere Infos und Download gibt’s bei http://eaccelerator.net

Improve PHP performance try php __autoload()

„Of all magic in PHP I probably like the __autoload() hook the most. It saves a good deal of tedious script inclusion calls and may drastically speed up your application by saving the parser from doing unnecessary work. Allthough it has been around since the release of PHP5, I haven’t found any convincing applications for it yet. Most of them follow the same scheme: Whenever an undefined class is being instantiated, a little __autoload() function tries to include a PHP file, which has to be named after it’s class:“

Improve PHP performance try php __autoload()

Improve PHP performance try php __autoload()

SANS Top 20 Vulnerabilities – The Experts Consensus

„Das SANS-Institut hat heute seine Liste der 20 am meisten ausgenutzten Sicherheitslücken des Jahres 2005 veröffentlicht. Überraschungskandidaten sind Antivirensoftware, Cisco-Produkte – und Mac OS X. Die tradierten Kategorien Windows und Unix reichen inzwischen nicht mehr aus, neu hinzugekommen sind die teils umfangreichen Kategorien Cross-Platform-Anwendungen sowie Netzwerkprodukte.“

SANS Top 20 Vulnerabilities – The Experts Consensus

[via heise.de]

SANS Top 20 Vulnerabilities – The Experts Consensus

Passwort eines PostgreSQL Benutzers / Role resetten

Falls man mal in die Verlegenheit kommt, das Passwort eines Benutzers bzw. einer Role in PostgreSQL zurücksetzen zu müssen, hier eine kleine Anleitung:

  • Authentifizierungsmethode in der pg_hba.conf für den Root/Admin-Benutzer für Localhost auf Trust setzen (Beschreibung)
  • Über den Localhost mit diesen Benutzer auf die DB connecten
  • Passwort ändern mit „ALTER ROLE user WITH PASSWORD ‚password‘;“ (Beschreibung)
  • Authentifizierungsmethode in der pg_hba.conf wieder zurücksetzen (Beschreibung)

Sollte man das Passwort des Root-Users noch wissen, kann man natürlich gleich mit ALTER ROLE das Passwort des betroffenen Users ändern.

PHPit – Totally PHP & Ajax – PHP without using the XmlHttpRequest Object

„Ajax is one of the biggest ‚discoveries‘ in the past year, and it has become a real buzzword, just like Web 2.0. Admittedly, Ajax can be used for a lot of things, and it really does speed up web applications. Already Ajax is used by many highly popular websites, most notably GMail, but other’s like Ta-da List or Flickr also use it. Heck, even Microsoft has gotten wind of the Ajax buzz, and is actually moving towards web-based applications as well.
But there is one problem with most of the current implementations of Ajax: it has one dependency, and that is the XmlHttpRequest object. Most modern browser, like Firefox, have inbuilt support for this object, but older browsers, like Internet Explorer 6, don’t have native support for this object. Luckily, IE 6 does support it, but it’s built in as an ActiveX control, which means your visitors get an ugly warning message about the possible danger of an ActiveX control, or in some cases it just doesn’t work at all.
In this tutorial, I will show you how to use Ajax without even having to use the XmlHttpRequest object.“

PHPit – Totally PHP & Ajax – PHP without using the XmlHttpRequest Object

PHPit – Totally PHP & Ajax – PHP without using the XmlHttpRequest Object

Ajax & PHP without using the XmlHttpRequest Object

„Ajax is one of the biggest ‚discoveries‘ in the past year, and it has become a real buzzword, just like Web 2.0. Admittedly, Ajax can be used for a lot of things, and it really does speed up web applications. Already Ajax is used by many highly popular websites, most notably GMail, but other’s like Ta-da List or Flickr also use it. Heck, even Microsoft has gotten wind of the Ajax buzz, and is actually moving towards web-based applications as well.
But there is one problem with most of the current implementations of Ajax: it has one dependency, and that is the XmlHttpRequest object. Most modern browser, like Firefox, have inbuilt support for this object, but older browsers, like Internet Explorer 6, don’t have native support for this object. Luckily, IE 6 does support it, but it’s built in as an ActiveX control, which means your visitors get an ugly warning message about the possible danger of an ActiveX control, or in some cases it just doesn’t work at all.
In this tutorial, I will show you how to use Ajax without even having to use the XmlHttpRequest object.“

Ajax & PHP without using the XmlHttpRequest Object

Ajax & PHP without using the XmlHttpRequest Object