hallo zusammen,
ich hoffe ihr könnt mir helfen, ich möchte eine datei auf einem ftp server speichern und dies ohne die fopen() function. leider bekomme ich bei folgendem code eine fehlermeldung:
error opening Resource id#4
wenn ich diesen code benutze:
$conn_id = ftp_connect($ftp_server);
$destination_file = \"filename.html\";
$tmp_source_file = tmpfile();
fwrite($tmp_source_file, $return);
$upload = ftp_put($conn_id, $destination_file, $tmp_source_file, FTP_ASCII);
fclose($tmp_source_file);
ftp_quit($conn_id);
danke im voraus
MoREM
					ich hoffe ihr könnt mir helfen, ich möchte eine datei auf einem ftp server speichern und dies ohne die fopen() function. leider bekomme ich bei folgendem code eine fehlermeldung:
error opening Resource id#4
wenn ich diesen code benutze:
$conn_id = ftp_connect($ftp_server);
$destination_file = \"filename.html\";
$tmp_source_file = tmpfile();
fwrite($tmp_source_file, $return);
$upload = ftp_put($conn_id, $destination_file, $tmp_source_file, FTP_ASCII);
fclose($tmp_source_file);
ftp_quit($conn_id);
danke im voraus
MoREM
          
Kommentar