<HTML>
<BODY>
<?
function extraire_lignes($file)
{
}
$rep=opendir('C:\DOS');
while ($file = readdir($rep))
{
if($file != '..' && $file !='.' && $file !='')
{
if (!is_dir($file))
{
list($nomfichier,$extension) = explode(".",$file);
if($extension == "dxf" )
{
echo "<br>";
echo "voici un fichier dxf: ".$file."<br>";
//extraire_lignes($file);
$fichier = 'C:\DOS\'.$file;
/*echo $fichier;
$fd = fopen ("index.php", "r" );
while (!feof($fd))
{
$buffer = fgets($fd);
echo $buffer."<br>";
}
fclose ($fd);*/
}
}
}
}
closedir($rep);
clearstatcache();
?>
</BODY>
</HTML>
il me met Parse error: parse error, unexpected $ in c:\program files\easyphp\www\index2.php on line 47
or y a pas de ligne 47 ca av jusqu'a 46 c'est tout.