The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> FTP Help
|
ftp - ftp_put
Discuss ftp - ftp_put in the FTP Help forum on Dev Shed. ftp - ftp_put FTP Help forum discussing FTP practices, tips and solutions for problems with FTP on multiple platforms. File Transfer Protocol (FTP) was designed specifically for transferring files from one machine to another.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

April 11th, 2002, 06:20 AM
|
|
Junior Member
|
|
Join Date: Apr 2002
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
ftp - ftp_put
I am having trouble with ftp_put()
I connect to the server fine and the file to be uploaded is local to the php script but I still get problems
$upload = ftp_put($conn_id, "new_file.txt", "my_file.txt", FTP_BINARY);
results in
Warning: ftp_put: Illegal PORT rejected (address wrong). in /usr/local/apache/htdocs/paul/ftp_file.php on line 72
any ideas ?
|

April 11th, 2002, 08:25 AM
|
|
Junior Member
|
|
Join Date: Apr 2002
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
ANSWER
Chuffing firewalls !
Changing the port No. PASV didnt work either.
all sorted
|

April 11th, 2002, 08:45 AM
|
 |
Contributing User
|
|
Join Date: Oct 2001
Location: New Zealand
|
|
|
You're not the real slim shady that all the other slim shady's are just immitating by spitting in my onion rings and hanging out in the parking lot... are you?
|

April 11th, 2002, 11:16 AM
|
 |
Mobbing Gangster
|
|
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
|
|
|
Why are you uploading .txt files in binary?
__________________
And you know I mean that.
|

April 11th, 2002, 11:22 AM
|
|
hmm...
|
|
Join Date: May 2001
Location: Nashville
Posts: 50
Time spent in forums: 21 m 18 sec
Reputation Power: 12
|
|
|
Have you set your connection????
$fp = ftp_connect("ip_address");
$transfer = ftp_put($fp,"new_file.txt","my_file.txt",FTP_ASCII);
|

April 11th, 2002, 11:27 AM
|
 |
Mobbing Gangster
|
|
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
|
|
|
..he has, and he's solved his problem already (I suppose, from his 'all sorted')... and yeah FTP_ASCII is default you dont have to specify it....and you forgot to log in to server in your code
|

April 11th, 2002, 11:53 AM
|
|
hmm...
|
|
Join Date: May 2001
Location: Nashville
Posts: 50
Time spent in forums: 21 m 18 sec
Reputation Power: 12
|
|
You are so right...
Atleast it was closer than without any connection at all.... 
|

April 12th, 2002, 06:58 AM
|
|
Junior Member
|
|
Join Date: Apr 2002
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
guys
the all sorted did mean it worked
connection etc done previously
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|