ftp

capturing curl stdout into variable in PHP

Task Downloading binary files from a remote media processing server to a web server. This works but I cannot capture the curl stdout output $result = shell_exec('curl -v http://domain.com/images/dir/dir/dir/file.jpg --user username:password -o /usr/www/htdocs/images/dir/dir/dir/file.jpg'); Note: I have had no luck using the PHP cu...

Traversing FTP listing

I am trying to to get all directories' name from an FTP server and store them in hierarchical order in a multidimensional list or dict So for example, a server that contains the following structure: /www/ mysite.com images png jpg at the end of the script, would give me a list such as ['/www/' [...

Amazon S3 FTP interface

I am wondering if anyone knows of an FTP interface to Amazon S3? I am looking for a self-hosted solution. I can do Windows or linux. FOSS is preferred, but will pay too. ...

Choosing a version control system for a simple web site.

We're bringing some of our web development in-house and one of my goals is to get it under version control. Right now I'm looking mostly towards HG and Git, respectively. Bazaar was knocked out of the running due to some flaky behavior. The biggest points on my mind are: Access to our web host is FTP-only. This worries me a bit. The p...

Upload files with ftp using powershell

I want to use powershell to transfer files with FTP to an anonymous FTP server. I would not use any extra packages. How? There must be no risk that the script hangs or crashes. ...

How to use PORT command while writing an FTP client with JAVA

I am trying to write an FTP client using java. As far as I understand I need to send my IP adress with PORT command when I need to establish an active connection but, How do I get that IP address? I am trying to do something like this but it is obviously wrong: ServerSocket ssock = new ServerSocket(); ssock.bind(null); ssock.ssock.get...

Unable to upload file to ftp server using php

I am trying to upload file to FTP server using php but it is not getting uploaded. Code: $response =<<<RESPONSE <cdm:Response> <cdm:header exportTime="{$export_time}" baseVersion="{$baseline_snapshot_id}" version="{$this->snapshot_id}"> <cdm:countryCode>{$this->domain}</cdm:countryCode> <cdm:descript...

Aptana Studio FTP doesn't work with folders normally

When Aptana Studio uploads some project folder, this folder gets 655 permission rights, even if this folder had been exist. After that files won't be transfered to it (no errors, just no files there). Also I can't open this folder in my FTP client (access denied). But if I manually change permissions to 755, everything become ok. How to ...

How to transfer a file between two FTP servers?

Hey guys, I have two ftp servers with fxp enabled on both, I'm just wondering how I would transfer a file between the two servers in Python? I was told curl wouldnt do it, but maybe ftplib will do. so, the file (file.txt) is in '/personal/' FTP1 and I want to transfer that to FTP2 also to the same place, '/personal/' Any ideas on how ...

Can I add an ftp folder to flex project in flexbuilder3?

I have some config files (.xml's) used by my flex app sitting on remote servers. I would like to be able to modify them in flex builder along with the local app files. Ideally I could add a folder to my project that was the ftp folders. If this is not possible, does anyone have a good idea for how to manage changes to these remote fil...

Searching & retrieving filenames from an FTP site using wininet.dll api

Hi all, I've been trying to use the wininet.dll api to search an ftp site for matching files but it's not working for some reason. Here's the method i've been using. Private Sub DoStuff() Dim hConnection As Long, hOpen As Long, sOrgPath As String, lRes As Long Dim scUserAgent$ scUserAgent$ = "vb wininet" hOpen = Inte...

Is it possible to make a process on a server act like a filesystem to interact with FTP?

What I want to do is run a process on my server that acts like an FTP server. So people can upload things through "FTP" but really it's a program I'm running that lets me put information about that file in a database and not really put the files where they say they're going. E.g. Website Templates. A user of my service wants to put up t...

Autocompletion from .netrc in Emacs

I use Emacs at work and at home, both on Windows XP, both EmacsW32. On my work computer, if I setup FTP login details for a site, for example: machine ftp.stackoverflow.com login codinghorror password orange then if I want to ftp there from Emacs, I just type /ftp.s<tab> and it knows from my .netrc that it can autocomplete to /ft...

SVN FTP Upload with multiple FTP accounts

We have multiple ftp accounts for each website and recently have set up the folder with all the websites inside of a SVN Repository. What would be the best approach to set it up so it would upload on commit to the respective ftp account based on it's folder? ...

How to upload (FTP) files to server in a bash script?

Sorry I'm new to this sort of thing. I'm trying to write a bash script that uploads a file to a server. How can I achieve this? Is a bash script the right thing to use for this? Solution: I ended up using scp to copy the files securely. scp <file to upload> <username>@<hostname>:<destination path> I also set up public key authentica...

CSS Sprite now showing once uploadedhtr

http://www.keironlowe.host56.com/Website%20Testing/index.html At the bottom below the paragraph of text I have two images with hover effects one says Contact us and another says Jobs Available! These are there when I test the site on my local machine, but when I upload them to a server there not there when I load the page, the anchors ...

iPhone FTPS client

Hello, I have no clue how to make an FTPS (FTP over SSL) on the iPhone. I would like to use the following code ftpStream = CFWriteStreamCreateWithFTPURL(NULL, (CFURLRef) url); CFWriteStreamSetProperty(ftpStream, kCFStreamPropertyFTPUserName,username); CFWriteStreamSetProperty(ftpStream, kCFStreamPropertyFTPPassword,password); self.netw...

Unexpected byte sequence returned from IIS 5.1 FTP server

Back when .NET Framework 1.0 was launched, there were no good FTP client implementations available for .NET so I wrote my own implementation using System.Net.Socket. Recently I had to make some changes to it, and while debugging I noticed garbled output from the IIS 5.1 FTP server I'm testing against (WinXP SP 2) when closing the connect...

Project Update via Textmate (like Espresso)

I am thoroughly in love with Textmate. I program everything in it, including ASP.Net for my daily job. However, I have a license for Espresso and I was looking at it recently and discovered that there is a "Publish" section that I knew about before, but I didn't know that it could compare my FTP directory with my local directory and pu...

Files are getting corrupted via FTP Client Upload

I tried uploading files to my server my.php (normal local file) <?php $box_title= "SEARCH ME" ?> After uploading via FileZilla FTP Client (remote server file) // SOMETIMES ABOVE FILE BECOMES <?php$box_title= "SEARCH ME"?> // OR SOMETIMES LIKE THIS <?php $box_title= "SEARCH ME" ?> I suspect this is a server related issue, but no...