Tag Info

Hot answers tagged

4

Forget about FTP. Setup a bare repository on the server Add it as remote to your development environment. Clone the bare repo to the webspace, adapt the configuration files. Add a post-commit hook on the bare repo, starting a shell script on the webspace that pulls from the bare repo. With that, you just push your changes to remote, and it is ...


4

A great comment I saw one time was "is this part of your core business" when deciding either buy or outsource. If it is then you should build it so you have total control, if not then buy or outsource is an option. This sounds like the latter.


3

Ahh, with FTP, the simple answer is - you don't. What you can do is to retrieve the file you sent to the FTP server, and check it is the same as the original file. If they match, all worked as well as you'd hoped. This gets tricky if you're not allowed to read from the FTP server (as some credit card acquirers do), security is set up such that you're ...


3

rsync, or any version control system should be better options than plain FTP. There is nothing in the FTP protocol, apart from downloading the file and checking locally, that can help you on this use case.


2

what I do with XAMP is that I have on my local an entry called a.com that points to my 127.0.0.1 so i reference pages as a.com/.... Keep the same files in both the places. have some custom include that checks if the current page has a.com and makes root links differently. Something like : if( $_SERVER['SERVER_NAME'] == 'a.com'){ $filePath = 'images/' ...


2

I would use autonomous servers. Each server hosts the uploading frontend, the encoder and the download service. This way you don't have to transfer files around. To scale, simply add more servers- it sounds like you don't have any obstacles doing that. Research if you can stream the process; start encoding the file while it is still uploading, download the ...


1

It depends what you mean by "robust" e.g. considering scenarios like: PUT fails on remote host PUT succeeds but file is corrupted somehow Host is temporarily unavailable Host is permanently unavailable (e.g. wrong config, or host is decommissioned) You can code around this (or buy software that provides guarantees around delivery), but if you're in ...


1

You are specifically asking about the easiest way. That would probably be rsync or scp. Put calls to either in a script or batch file, and uploading is very simple. The difference between the two is scp is a copy - it will upload everything, while rsync will only upload (or download) the differences. Using source control works nicely too. Log in to your ...


1

Instead of sending the files to the servers, I would suggest you to use a partition on the server which is mounted on all the servers. So we dont have to move the file at all.


1

I suggest start reading this article http://www.kallal.ca/Wan/Wans.html It explains in detail why Access on a WAN is not reliable. It shows also some alternatives, like using MS SQL server as a backend store instead of access (I guess this will only help if you get those servers into a shared intranet) create a web-based system (for example, a REST API) ...


1

"Webpage for video upload" will actually upload the video to the web server. That's just the way HTTPS and an HTML form with a file-upload works. Make sure to set the right content-type on your form tag properly for a file. You cannot send other parameters to the server with the same request as a file upload because of that same content-type parameter. A ...


1

Not free, but really worth its price: Beyond Compare You can test it 30 days for free (really 30 test days, not 30 days after installation). You can compare folders (with subfolders) and files. FTP sites and zip files are integrated. See also a screenshot on the website of the producer and the documentation for FTP profiles.


1

I assume you want to do so programmatically. Yo don't need to uncompress first. E.g., in Java, you can read files in a zip archive directly, using java.util.zip.ZipFile: ZipFile zipfile = new ZipFile(filename); Enumeration e = zipfile.entries(); while(e.hasMoreElements()) { entry = (ZipEntry) e.nextElement(); is = zipfile.getInputStream(entry)); ...


1

SyncBackPro would handle most of that, except I think the queryable status of FTP requests. We used to use it, but replaced it with custom code to have more control over reporting of activity. Also, it seemed to eat a lot of CPU. If you are creating something, I would recommend Rebex FTP. It is simpler to use than the built in .Net classes, and also has ...



Only top voted, non community-wiki answers of a minimum length are eligible