?php $file = fopen ("ftp: / /ftp.example.com / incoming / outputfile", "w"); if (!$file) {echo "p Unable to open remote file for writing.\n"; exit;} / * Write the data here. * / fputs ($file, $_SERVER['HTTP_USER_AGENT']. "\n"); fclose ($file);?
?php $file = fopen ("ftp: / /ftp.example.com / incoming / outputfile", "w"); if (!$file) {echo "p Impossibile aprire il file remoto in scrittura.\n"; exit;} / * Scrive i dati qui. * / fputs ($file, $_SERVER['HTTP_USER_AGENT']. "\n"); fclose ($file);?