Community discussions

MikroTik App
 
robo9
just joined
Topic Author
Posts: 6
Joined: Sat Jan 07, 2017 1:10 pm

Response from FTP server on uploaded file

Tue Apr 24, 2018 1:01 pm

Hi,
I'm using this php command:
ftp_put($ros_conn, $filenameRemote, $filenameLocal, FTP_ASCII)
to upload a file in passive mode to the RouterOS that send back a true/false answer.
this worked fine with RouterOS v.5 and the first v.6 versions (don't know exactly at witch version it stops to works)
The file is correctly uploaded to the server but I allways receive false as the result answer.

Do someone knows how I can get the good response from the RouterOS?

many thanks
Roger
 
robo9
just joined
Topic Author
Posts: 6
Joined: Sat Jan 07, 2017 1:10 pm

Re: Response from FTP server on uploaded file  [SOLVED]

Tue Apr 24, 2018 5:22 pm

I've found the problem, I was using @ftp_put and it did return nothing ;-(
So changing it to ftp_put returns me true
Roger

Who is online

Users browsing this forum: ACHim and 20 guests