On Sunday 05 October 2003 21:54, Ruprecht Helms wrote: > actual I have the following script. > I want to upload a image from the local pc into the subdir html of a > webspace. You *are* running this script on the local pc aren't you? > The file I want to upload is not stored in the > destinationdirectory. Check your 'destinationdirectory': 1) it's missing a '/'. 2) '+' is an mathematical addition operator, '.' is a string concatenation operator > This is my actual script > > <? > ... > > $conn_id=ftp_connect('62.241.50.14'); > ftp_login($conn_id,'<user>','<password>'); > echo "Current directory : ", ftp_pwd($conn_id), "\n"; > //ftp_chdir($conn_id,"html"); > echo "Current directory is now : ", ftp_pwd($conn_id), "\n"; > echo "<br>Bilddatei "; > echo $bild; > $upload=ftp_put($conn_id,'html'+$bild,$bild,FTP_BINARY); > ?> -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* Kafka's Law: In the fight between you and the world, back the world. -- Franz Kafka, "RS's 1974 Expectation of Days" */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php