I need a script that will upload, using ftp, folders of files to a remote webserver from my local windows machine. The script will work by reading config files for the ftp settings. A config file should be in plain txt format. It may have any name but should end with the .ini extension. It will contain the following information: ======================= server i.p./url // [url removed, login to view] username password upload location // [url removed, login to view] chmod setting // in octal format i.e 0777 folder to upload from on local machine // c:/myfolder ========================= The config files may contain other lines of text so the script should be written in such a way that it only extracts the above relevant information. It is upto the coder how they would want to structure the config file. The chmod setting will be used to change the chmod of the folder the script will be uploading in to. When the script is initiated, it will look through a folder named "queue" to check for config files. It will read through the config files and carry out the uploading for each one. Once a config file has been dealt with it will be moved to another folder named "uploaded". once the "queue" folder is empty the script will stop. Once the script is initiated it should run without further user interaction. At each stage (connecting to server, setting chmod of folder, uploading folder and files) the script should report back to the browser window whether the operation was successful or not. If a config file isnt successful it should be placed in a folder named "unsuccessful". The script should be well comented as I may need to modify it in the future.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
windows xp, apache, php 5