News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
My Automated PHP Scripts for Creating FTP Connections to a Remote Server
June 19, 2012 @ 10:41:57

PHPBuilder.com has posted a new tutorial about creating automated FTP scripts to pull down information from a remote server (using FTP streams).

In 2007 I began working on a website project for an investment company in my hometown of Cleveland, Ohio USA. The purpose of this website was to automatically download financial data of traded securities from two (2) remote Web servers. [...] Both of these PHP scripts were set up on the Web server's "crontab manager" to automatically run at a set time each business day.

Code is included showing how to connect to the remote service (via curl) with a "ftp" stream-based URL as the location. Also included is an example using a fopen call to the URL and inserting the resulting data into their tracking tables. The other script pulls the data out and adds a new record to a transactions table for the current day.

0 comments voice your opinion now!
ftp tutorial connection transaction mysql cron automation


blog comments powered by Disqus

Similar Posts

Ryan Malesevich's Blog: iTunes Stats for Macintosh with PHP & MySQL Part 1

Snipe.net: Sending Mail Using PHP and Amazon SES on Centos/AWS Linux

Havard Eide's Blog: Iterators

Blue Parabola Blog: Installing phpUndercontrol on Debian Etch

PHPEveryDay.com: New Smarty Tutorials


Community Events





Don't see your event here?
Let us know!


voicesoftheelephpant tips zendserver api code list podcast conference series introduction deployment bugfix community symfony interview framework laravel language threedevsandamaybe release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework