ftp

Web app deployment Best Practices : how to manage local & live files?

Hi, I am writing php web applications, and simply deploy them via FTP. To make it work, I often have some tweaking/debugging to do given that I have little control over the (free) web server hosting me, so what's working in my local environment might not work live. For example I keep a separate php file containing class_db_myapp.php wh...

How can I stop Filezilla changing my linebreaks?

I'm downloading a perl CGI file from a Linux web server. It has Unix linebreaks. I edit it on a Windows PC with a decent text-editor (Geany) which preserves those linebreaks. I then upload it again with Filezilla and it has DOS linebreaks, which stop it working. I know it's Filezilla, not Geany because even if I just download it, and ...

How best to display a stock file dynamicallly?

I'm working on a website for a client, in PHP/MySQL. They are a publisher, and the site needs to show whether the book you are looking at is in stock with their distributor. The stock file is a CSV file on the distributor's FTP. This file is updated at a certain time every evening. So far I've written a script in PHP that copies the con...

FTP and SNMP Support in .NET

Hello All, I've been perplexed over a .NET dilemma for the past couple months. I can't seem to find any support for standard protocols in the framework. I would imagine that support FTP and SNMP would be pretty simple to port into the main framework. However, I've found that I either have to jump through hoops and read through all ki...

Looking for an FTP and file parser application

Our team has been tasked to create an application that can download a bunch of client files on schedule, parse the file content and upload the content to a database (into a set of tables). I am sure a lot of applications/teams have this need. Is there an open source application (desktop or web based) that we can use to accomplish this t...

How can I get the command-line output of a DOS tool using Perl?

Hi, I want to meassure the throughput of a link using Windows build-in FTP tool inside a Perl script. Therefore the script creates the following command script: open <ip> <username> <password> hash get 500k.txt quit Afterwards I run the command script using the following Perl code: system(@args); @args = ("ftp", "-s:c:\\ftp_dl.txt")...

How can I get the newest file from an FTP server?

I am using Python to connect to an FTP server that contains a new list of data once every hour. I am only connecting once a day, and I only want to download the newest file in the directory. Is there a way to do this? ...

Transferring files with metadata

I am writing a client windows app which will allow files and respective metadata to be uploaded to a server. For example gear.stl (original file) and gear.stl.xml (metadata). I am trying to figure out the correct protcol to use to transfer the files. I was thinking about using ftp since it is widely used and a proven method to transf...

Is there a special trick to downloading a zip file and writing it to disk with Python?

I am FTPing a zip file from a remote FTP site using Python's ftplib. I then attempt to write it to disk. The file write works, however most attempts to open the zip using WinZip or WinRar fail; both apps claim the file is corrupted. Oddly however, when right clicking and attempting to extract the file using WinRar, the file will extract....

TSO/MVS Uploading problem

Hi all, I'm uploading an ebcdic file(converted from ascii) from Windows OS to Mainframe. My problem is that when I checked the file after uploading it, I see alot of new lines. When I tried to check it with its hex dump I discovered that when mainframe sees a x'15' it translates it into a newline. In the file there are packed decimals s...

wput on Windows ignoring --skip-existing

Hello, Hopefully someone familiar with wget & wput on windows knows about this... wput -v --remove-source-files --skip-existing --dont-continue %stfile% ftp://%ftpuser%:%ftppass%@%ftpserver%/inbound/%stfile% basically this should not try to ftp the file if it already exists on the ftp site... however the file does not exist-- and ...

Determine if a listing is a directory or file in Python over FTP

Python has a standard library module ftplib to run FTP communications. It has two means of getting a listing of directory contents. One, FTP.nlst(), will return a list of the contents of a directory given a directory name as an argument. (It will return the name of a file if given a file name instead.) This is a robust way to list the co...

SVN Merge changes made on FTP into working copy

We manage our web development using SVN. On one project, we deployed the site by Exporting the project and FTPing it to the client sever. This client is hands on and has made changes to the code on the FTP. We're hired to add more functionality to the site now. How can I take the work that's been done on the FTP and merge it into my ...

Is SSL set on a per machine or per connection basis

Is it possible to have a FTP server using SSL on a application server that does not use SSL? How would you setup an ASP.NET 2.0 to consume a SSL certificate? This certianly sounds possible but is it advisable, is it good practice? ...

Possible for Word to edit documents directly off an web server without Sharepoint?

I have a use case that seems pretty simple, but after Googling around I can't find a solution. I have some Word documents on an FTP server and I'd like to be able to create a link that would download them into Word and then allow the saved changes to be sent back to the FTP server. The problem is that I can only get Word to either open ...

FTP response codes

I am troubleshooting Microsoft's FTP server (IIS 6.0) at a client site. In the FTP log, there's a few response codes that I'd like to know the meaning of. For instance, in the line: 12:01:15 10.4.152.122 [194326]created x.jpg 550 1450 I'd like to know the meaning of 1450. There's other ones as well, like 550 2, and 550 32. Anyone ...

Web-based FTP client & code editor

I am looking for a way to maintain LAMP-based websites entirely from a browser window. Currently I'm using FlashFXP and NoteTab Pro for FTP and code editing, but they're only good as long as I'm at my desk. I'd like to find a way to make site edits when I'm away from the office. If I'm visiting family, and a client calls me about a bu...

Using .NET 2.0, how do I FTP to a server, get a file, and delete the file?

Does .NET (C#) have built in libraries for FTP? I don't need anything crazy... very simple. I need to: FTP into an account Detect if the connection was refused Obtain a text file Delete the text file What's the easiest way to do this? ...

Effective use of gvim over a network

I currently use vim in a telnet window for editing code (very old school!). There is a lot of source code (mainly C), so I use tags, cscope etc. to get around. This is ok as far as it goes, but network latency can make every keystroke "laggy", which is not so good! I'd like to use gvim on my Windows PC (or any editor that can be set up ...

In protocol design, why would you ever use 2 ports?

When a TCP Server does a socket accept on a port, it gets a new socket to work with that Client. The accepting socket remains valid for that port and can accept further clients on that port. Why did the original FTP specification RFC 959 decide to create both a control port and a data port? Would there be any reason to do this in a ...