On Sun, 2003-10-05 at 11:39, Jason Wong wrote:

> > $upload=ftp_put($conn_id,$bild,$dstdir."/".$bild,FTP_BINARY);
> >
> > [/code]
> 
> 1) You've got your source-file and destination-file mixed up.
> 2) You've already chdir into 'html' so destination-file so be just '$bild' and 
> not '$dstdir."/".$bild'. Unless your directory structure really is 
> 'html/html/'

actual I have the following script.
I want to upload a image from the local pc into the subdir html of a
webspace. The file I want to upload is not stored in the
destinationdirectory.

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);
?>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to