|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ? |
|
#2
|
|||
|
|||
|
Chuffing firewalls !
Changing the port No. PASV didnt work either. all sorted |
|
#3
|
||||
|
||||
|
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?
|
|
#4
|
||||
|
||||
|
Why are you uploading .txt files in binary?
__________________
And you know I mean that. |
|
#5
|
|||
|
|||
|
Have you set your connection????
$fp = ftp_connect("ip_address"); $transfer = ftp_put($fp,"new_file.txt","my_file.txt",FTP_ASCII); |
|
#6
|
||||
|
||||
|
..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
|
|
#7
|
|||
|
|||
|
You are so right...
Atleast it was closer than without any connection at all.... ![]() |
|
#8
|
|||
|
|||
|
guys
the all sorted did mean it worked
connection etc done previously |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > ftp - ftp_put |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|