Re: FTP Chron Mysql and PHP
| From: | Richard Lynch | Date: | Thu, 13 Sep 2001 04:38:59 +0000 |
| Subject: | Re: FTP Chron Mysql and PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67136@lists.php.net to get a copy of this message | ||
Do you have telnet/SSH access?
You can simple fopen() the FTP file and read it, or use PHP's FTP functions
(not sure which will be easier to provide username/password) and then use
http://php.net/explode to extract the fields.
You'll also want to read:
man 5 crontab
which is the one that gives the details of how to make cron work.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Wade Berlin <wade@bpweb.com>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Wednesday, September 12, 2001 7:16 PM
Subject: FTP Chron Mysql and PHP
> I'm looking for a way to automatically ftp a tab-delimited text file from
a
> private ftp location and update my Mysql table every 24 hours. I don't
have
> root access to the php/mysql server. Anyone have an idea?
>
>
>
> Thanks,
>
> Wade Berlin, Backstreet Production Group Inc.
>
> ----------------------------------------------
> Backstreet Production Group......www.bpweb.com
> 904.398.8730................(fax) 904.396.0335
> ----------------------------------------------
>
>