<?php
$Host = "xxx.homeftp.net";
ftp_connect ( $Host );
$verzeichnis=opendir ('$Host');
while ($file = readdir ($verzeichnis)) {
if($file != "." && $file != "..")
echo '<a href="'.$file.'">'.$file.'</a><br>';
}
closedir($verzeichnis);
?> Warning: opendir($Host) [function.opendir]: failed to open dir: No such file or directory in /var/www/xxx/html/script.php on line 4Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/xxx/html/script.php on line 5Warning: closedir(): supplied argument is not a valid Directory resource in /var/www/xxx/html/script.php on line 9<?PHP
$name='Dragonl';
echo "NAME: $name";
// Ausgabe: "NAME: Dragonl"
echo 'NAME: $name';
// Ausgabe: "NAME: $name"
?>Mitglieder in diesem Forum: DonDudelsack und 0 Gäste