Page 1 of 1

ftp_put and ftp_get

Posted: Tue May 13, 2003 2:51 am
by root4
I have a linux server (Apache and proftpd), when i use ftp_put or ftp_get.
Apache return me Warning ftp_put(): error opening C:\WINNT\Greenstone.bmp in ....

What is the pb ?

Posted: Tue May 13, 2003 3:22 am
by []InTeR[]
Doest the Apache server has rigths to read or write that file?

Posted: Tue May 13, 2003 4:06 am
by root4
How to know if the Apache server has rigths to read or write that file?

Posted: Tue May 13, 2003 4:13 am
by []InTeR[]
Find out what use apache is, but you can do it quickly by chmod'ing it to 666, read and write rights for owner,group and public.

command: chmod 666 <file>

Posted: Tue May 13, 2003 4:44 am
by root4
no it's not that

Posted: Tue May 13, 2003 5:29 am
by volka
C:\WINNT\Greenstone.bmp
looks like a windows path. Where does this come from?

Posted: Tue May 13, 2003 5:46 am
by root4
I want to send a file of windows (C:\WINNT\Greenstone.bmp) to my linux server

Posted: Tue May 13, 2003 5:49 am
by []InTeR[]
Your linux server doesn't know where c:\winnt\ is.
You must mount this path, or you can send the file with post.
To install a ftp server on the win-nt machine is allso a possebillity.

Posted: Tue May 13, 2003 6:08 am
by root4
what you can say by "you can send the file with post" ?

Posted: Tue May 13, 2003 6:25 am
by root4
have you an example with post?

Posted: Tue May 13, 2003 6:29 am
by twigletmac
root4 wrote:have you an example with post?
http://www.php.net/manual/en/features.file-upload.php

Mac