FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 11th, 2002, 06:20 AM
slim shady slim shady is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 3 slim shady User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry 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 ?

Reply With Quote
  #2  
Old April 11th, 2002, 08:25 AM
slim shady slim shady is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 3 slim shady User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile ANSWER

Chuffing firewalls !

Changing the port No. PASV didnt work either.

all sorted

Reply With Quote
  #3  
Old April 11th, 2002, 08:45 AM
binky's Avatar
binky binky is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: New Zealand
Posts: 1,774 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 58 m 15 sec
Reputation Power: 23
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?
__________________
Smartfone Warehouse

Reply With Quote
  #4  
Old April 11th, 2002, 11:16 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,912 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 31
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
Why are you uploading .txt files in binary?
__________________
And you know I mean that.

Reply With Quote
  #5  
Old April 11th, 2002, 11:22 AM
Schnotz Schnotz is offline
hmm...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Nashville
Posts: 50 Schnotz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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);

Reply With Quote
  #6  
Old April 11th, 2002, 11:27 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,912 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 31
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
..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

Reply With Quote
  #7  
Old April 11th, 2002, 11:53 AM
Schnotz Schnotz is offline
hmm...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Nashville
Posts: 50 Schnotz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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....

Reply With Quote
  #8  
Old April 12th, 2002, 06:58 AM
slim shady slim shady is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 3 slim shady User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
guys

the all sorted did mean it worked

connection etc done previously

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > ftp - ftp_put

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap