Nico Schuyt wrote:
> Nu alleen nog uitzoeken hoe ik met fopen() direct iets wegschrijf op
> de FTP-server
Het volgende leek hoopgevend:
//NA de ftp_login():
$destination_file="test.txt";
$source_file = tmpfile();
fwrite($source_file, "content of tempfile");
$upload = ftp_put($connectie_id, $destination_file, $source_file,
FTP_BINARY);
fclose($source_file);
// check upload status
if (!$upload) {
echo "FTP upload has failed!";
} else {
echo "Uploaded $source_file to $ftp_server as $destination_file";
}
maar leidt tot de melding
Warning: ftp_put() expects parameter 3 to be string; FTP upload has failed!
Iemand nog een suggestie?
--
Nico
www.nicoschuyt.nl

Likes:

Quote
ass@host/full/path/to/file');