Pruebas, Froogle e integrado elmar cronjob

nortenorte. norte norte nuestro Froogle norte, norte. habilitado. norte. norte, norte.

norte norte norte. norte. norte: norte norte

norte. El único retén…norte. norte, norte.

norte:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$filename = 'froogle.txt';
$url = 'http://www.meineurl.de/elmar_products.php?type=froogle'
;$dst = fopen($filename, 'wb');
if (!
$dst
) {
echo
"\nFehler, kann die Datei $filename nicht anlegen: $php_errormsg\n\n"
;
exit(
2
);
}
$hdl = fopen($url, 'rb');
if (!
$hdl
) {
echo
"\nFehler, kann die URL $url nicht oeffnen: $php_errormsg\n\n"
;
exit(
3
);
}while ((
$len = strlen($data = fread($hdl, 8192))) > 0
) {
fwrite($dst, $data
);
$size += $len
;
}
fclose($hdl
);
fclose($dst
);echo "\nOK, Produktdatei ".realpath($filename).' geschrieben: '.number_format($size, 0, ',', '.')." Bytes\n\n";
exit(
0);

norte. la otra opcion no me funciona:

la otra opcion no me funciona:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Benötigte Daten
$ftp_server = "uploads.google.com"
;
$ftp_user_name = "mein User Name"
;
$ftp_user_pass = "mein Passwort"
;
$destination_file = "sotel_de.txt"
;
$source_file = "/home/www/ncf118/html/shop/froogle.txt"
;// Herstellen der Basis-Verbindung
$conn_id = ftp_connect("$ftp_server"
);
// Einloggen mit Benutzername und Kennwort
$login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass"
);
// Verbindung überprüfen
if ((!$conn_id) || (!$login_result
)) {
echo
"Ftp-Verbindung nicht hergestellt!<br>"
;
echo
"Verbindung mit $ftp_server als Benutzer $ftp_user_name nicht möglich"
;
die;
} else {
echo
"Verbunden mit $ftp_server als Benutzer $ftp_user_name <br>"
;
}
// Upload der Datei
$upload = ftp_put($conn_id, "$destination_file", "$source_file", FTP_BINARY
); // Upload-Status überprüfen
if (!$upload
) {
echo
"Ftp upload war fehlerhaft!"
;
} else {
echo
"Datei $source_file auf $ftp_server als $destination_file geschrieben"
;
}
// Schließen des FTP-Streams
ftp_quit($conn_id);

Publicaciones creadas 1034

Deja una respuesta

Su dirección de correo electrónico no será publicada. Los campos necesarios están marcados *

Este sitio utiliza para reducir el spam Akismet. Aprender cómo se procesa sus datos comentario.

Artículos Relacionados

Comience a escribir su término de búsqueda arriba y presione enter para buscar. Presione ESC para cancelar.

Volver arriba