konnte da keinen fehler finden
<?php
$fd = fopen("
http://www.kernel.org";,"r"
;
while (!feof($fd)) {
$file = fgets($fd, 4096);
if (preg_match("|(>)(2.0.)([0-9]){1,2}(<)|",$file,$match))
{
echo "Die letzte stabile 2.0.x Version : ".substr($match[0],1,-1)."<br>";
}
if (preg_match("|(>)(2.2.)([0-9]){1,2}(<)|",$file,$match))
{
echo "Die letzte stabile 2.2.x Version : ".substr($match[0],1,-1)."<br>";
}
if (preg_match("|(>)(2.4.)([0-9]){1,2}(<)|",$file,$match))
{
echo "Die letzte stabile 2.4.x Version : ".substr($match[0],1,-1)."<br>";
}
if (preg_match("|(>)(2.5.)([0-9]){1,2}(<)|",$file,$match))
{
echo "Die letzte 2.5.x Beta-Version : ".substr($match[0],1,-1)."<br>";
}
if (preg_match("|(>)(2.4.)([0-9]){1,2}(-pre)([0-9]{1,2})(<)|",$file,$match))
{
echo "Die letzte prepatch 2.4.x Version : ".substr($match[0],1,-1)."<br>";
}
if (preg_match("|(>)(2.5.)([0-9]){1,2}(-pre)([0-9]{1,2})(<)|",$file,$match))
{
echo "Die letzte prepatch 2.5.x Version : ".substr($match[0],1,-1)."<br>";
}
if (preg_match("|(>)(2.2.)([0-9]){1,2}(-rc)([0-9]{1,2})(<)|",$file,$match))
{
echo "Die letzte prepatch 2.2.x Version : ".substr($match[0],1,-1)."<br>";
}
if (preg_match("|(>)(2.0.)([0-9]){1,2}(-rc)([0-9]{1,2})(<)|",$file,$match))
{
echo "Die letzte prepatch 2.0.x Version : ".substr($match[0],1,-1)."<br>";
}
if (preg_match("|(>)(2.)([0-9]{1,2})(.)([0-9]){1,2}(-pre)([0-9]{1,2})(-ac)([0-9]{1,2})(<)|",$file,$match))
{
echo "Die letzte "Alan Cox" Version : ".substr($match[0],1,-1)."<br>"; // zeile 115!!!!!!!!!!
}
if (preg_match("|(>)(2.)([0-9]{1,2})(.)([0-9]){1,2}(-dj)([0-9]){1,2}(<)|",$file,$match))
{
echo "Die letzte "dj" Version : ".substr($match[0],1,-1)."<br>";
} }
?>