| Posted by Vijayaraj Nagarajan on 02/07/05 22:46 
hi johni am a php user...
 one help from you..
 i could download the contents of an url from http://
 sites....but when i tried downloading the contents
 from an ftp site...
 i get this error...
 
 Warning: file_get_contents(): php_hostconnect: connect
 failed in /var/www/html/get.php on line 3
 
 Warning:
 file_get_contents(ftp://ftp.ncbi.nih.gov/genbank/gbrel.txt):
 failed to open stream: FTP server reports 229 Entering
 Extended Passive Mode (|||50334|) in
 /var/www/html/get.php on line 3
 This is the content of the retreived file...
 
 could you suggest me how to go about this...
 thanks for spending your valuable time...
 
 --- John Holmes <holmes072000@charter.net> wrote:
 
 > From: "vijayaraj nagarajan"
 > <bioinfovijayaraj@yahoo.com>
 >
 > > i would like to fetch the content of a url.
 > > and then would like to put in my page...
 > dynamically
 > > refreshing it once in a day...
 > >
 > > is it possible to do this in php.
 > > i have used perl get url option and then parse the
 > > file, with the date and time function...to do
 > this.
 >
 > $file =
 > file_get_contents('http://www.domain.com/page.php');
 >
 > Save $file locally and you have your copy. use cron
 > to run the command once
 > per day.
 >
 
 
 
 __________________________________
 Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.
 http://promotions.yahoo.com/new_mail
  Navigation: [Reply to this message] |