ftp_put and ftp_get

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
root4
Forum Newbie
Posts: 6
Joined: Tue May 13, 2003 2:51 am

ftp_put and ftp_get

Post 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 ?
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

Doest the Apache server has rigths to read or write that file?
root4
Forum Newbie
Posts: 6
Joined: Tue May 13, 2003 2:51 am

Post by root4 »

How to know if the Apache server has rigths to read or write that file?
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post 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>
root4
Forum Newbie
Posts: 6
Joined: Tue May 13, 2003 2:51 am

Post by root4 »

no it's not that
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

C:\WINNT\Greenstone.bmp
looks like a windows path. Where does this come from?
root4
Forum Newbie
Posts: 6
Joined: Tue May 13, 2003 2:51 am

Post by root4 »

I want to send a file of windows (C:\WINNT\Greenstone.bmp) to my linux server
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post 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.
root4
Forum Newbie
Posts: 6
Joined: Tue May 13, 2003 2:51 am

Post by root4 »

what you can say by "you can send the file with post" ?
root4
Forum Newbie
Posts: 6
Joined: Tue May 13, 2003 2:51 am

Post by root4 »

have you an example with post?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

root4 wrote:have you an example with post?
http://www.php.net/manual/en/features.file-upload.php

Mac
Post Reply