Code: Alles auswählen
<html>
<head>
</head>
<body>
<?php
$my_user = 'xxxx';
$my_pwd = 'xxx';
$my_host = 'xxxxxxx.xxx';
$ftp = ftp_connect($my_host);
$res = @ftp_login($ftp,$my_user,$mypwd);
if ($res)
{
$datei = 'iai.txt';
$handle = fopen($datei, 'a+');
$counter = 0;
if(is_writeable($datei))
{
foreach($_GET AS $key => $value)
{
$action = fwrite($handle, "{$key} : {$value}\r\n");
$counter++;
}
}
ftp_quit($ftp);
}
else
{
echo "nein";
}
?>
</body>
</html>