RE: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-06 Thread Michael Scappa
Ruprecht, I've experienced this problem, its that you need to turn ftp_pasv on. ftp_pasv($connection_id,true); That should take care of it, don't' worry about anything else. Michael Scappa Lead Developer Verve Internet Solutions > for higher education -Original Message- From: Ruprech

Re: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-06 Thread Ruprecht Helms
On Mon, 2003-10-06 at 13:05, Jason Wong wrote: Now I tried the method with move_uploaded (http-upload). This is the testscript Upload a File Upload a File File to Upload: File Upload You sent: , a byte file with a mime type of . And this are the errorme

Re: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-06 Thread Jason Wong
On Monday 06 October 2003 16:48, Ruprecht Helms wrote: > I want that (B) can locate the file on (A) and upload it to the > subdirectory on (B). This should also be possible in the case the user > have no ftp-server on his local pc. If (A) does not have an ftp server installed then you're asking f

Re: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-06 Thread Ruprecht Helms
Hi, > Let me get this straight: > > You're trying to transfer a file from a local PC (A) to a server (B). And your > code is running on (B)? > > If so, then, (assuming you have things setup correctly, ie have an ftpserver > running on (A)), you should be using ftp_get() or similar. > If not,

Re: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-05 Thread Jason Wong
On Monday 06 October 2003 01:00, Ruprecht Helms wrote: > On Sun, 2003-10-05 at 18:12, Jason Wong wrote: > > 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. > >

Re: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-05 Thread Ruprecht Helms
On Sun, 2003-10-05 at 18:12, Jason Wong wrote: > 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?

Re: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-05 Thread Jason Wong
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 > destinatio

Re: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-05 Thread Ruprecht Helms
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."/".$

Re: [PHP-DB] Trouble with uploading a file via ftp_put

2003-10-05 Thread Jason Wong
On Sunday 05 October 2003 17:15, Ruprecht Helms wrote: > by uploading a file via the ftp_put-command the upload is not done > properly. Result is I have a file in the destinationdirectory but > 0 bit in size, only the filename is transfered. > > How have I to write the script that the file I want