[PHP] help-fetching-url-contents

2004-09-10 Thread vijayaraj nagarajan
hi all
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.

pls help.
thanks in advance
vijay



__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] help-regarding-file_get_contents

2005-02-07 Thread vijayaraj nagarajan
hi john
i am a php user...
one help from you..
i could download the contents of an url from http://
sitesbut 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 <[EMAIL PROTECTED]> wrote:

> From: "vijayaraj nagarajan"
> <[EMAIL PROTECTED]>
> 
> > 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 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php-not-executing-in-html-file-help

2005-03-20 Thread vijayaraj nagarajan
hi friends
i am struggling to solve this problem for the past one
week...kindly help me..

my apache runs perfectly...
this code gives a perfect output in the browser...

file name: hi.html


hihihi


but this code doesnot give any output in the
browser...

file name: hi.html





but, the same file with the php code in it...could be
executed in the command line, using php... where i am
getting the expected output...

i tested to c if my apache doesnt recognise php ...

this code runs perfectly...in the browser...



if saved as hi.php file...
the same code saved as .html, is not giving any output
in the browser...

kindly help me to figure out this problem...

thanks

vijayaraj nagarajan
graduate student
the university of southern mississippi
MS - USA



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php-not-executing-in-html-file-help-----its working----thanks

2005-03-20 Thread vijayaraj nagarajan
hi
ian, chris , stephan and others

its working..now...
i dont know how come...but its working...
thank you somuch...

vijay



--- Ian Firla <[EMAIL PROTECTED]> wrote:
> 
> You need to tell apache to run html files through
> the php interpreter:
> 
> ie. AddType application/x-httpd-php .php .php3 .html
> 
> then restart apache
> 
> Ian
> 
> On Sun, 2005-03-20 at 14:12 -0800, vijayaraj
> nagarajan wrote:
> > hi friends
> > i am struggling to solve this problem for the past
> one
> > week...kindly help me..
> > 
> > my apache runs perfectly...
> > this code gives a perfect output in the browser...
> > 
> > file name: hi.html
> > 
> > 
> > hihihi
> > 
> > 
> > but this code doesnot give any output in the
> > browser...
> > 
> > file name: hi.html
> > 
> > 
> > 
> > 
> > 
> > but, the same file with the php code in it...could
> be
> > executed in the command line, using php... where i
> am
> > getting the expected output...
> > 
> > i tested to c if my apache doesnt recognise php
> ...
> > 
> > this code runs perfectly...in the browser...
> > 
> > 
> > 
> > if saved as hi.php file...
> > the same code saved as .html, is not giving any
> output
> > in the browser...
> > 
> > kindly help me to figure out this problem...
> > 
> > thanks
> > 
> > vijayaraj nagarajan
> > graduate student
> > the university of southern mississippi
> > MS - USA
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> -- 
> Ian Firla Consulting
> http://ianfirla.com
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php