Sign in to follow this  
Followers 0
hoppy

_FTPputfile fails

4 posts in this topic

I've made a tool which includes uploading a file using _FtpPutFile (just like in the example).

It used to work, but now after uploading the file doesn't seem to be uploaded correctly. (size 0 or half the size)

$server = 'ftp.example.com'
$username = 'secretusers'
$pass = 'hiddenpass'

$Open = _FTPOpen('MyFTP Control')
$Conn = _FTPConnect($Open, $server, $username, $pass)
$Ftpp = _FtpPutFile($Conn, 'C:\WINDOWS\Notepad.exe', '/somedir/Example.exe')

Nothing was changed to the code and it still works when I put it on another server.

So probably something to the server must have been changed.

Any ideas what to try to get it fixed?

Share this post


Link to post
Share on other sites



Maybe try _FTPDelFile first?

Nice idea, but sorry to say it didn't help.

Hopefully just a temperaly failure on that server.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I have a similar issue, However i can get it to FTP to my WEB server (Linux) with no problem but not to my application server (Windows XP server running Raiden FTPD) . Logs in ok to the windows server but just wont transfer the file and eventually times out any help appreciated

Edited by pageone

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0