LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] happiness

[ILUG] happiness

John P. Looney jplooney-ilug at online.ie
Thu May 18 17:50:10 IST 2000


 After banging my head off a wall for two days with AOLserver getting file
uploading working, (turned out to be a small bug in AOLserver that Harry
here fixed in 30 mins), I turned my attention to a problem in PHP. Turns
out that we thought it would be nice to tack the news headlines onto the
webmail login screen. Hmm. I thought. How do I do that ?

 PHP's massive ridiculously great API lets me do:

  $news_index = fopen("http://www.online.ie/sp/newsindex.adp?heading=no","r");
  fpassthru($news_index);

 fpassthru() takes a filehandle, and spews it to the screen. I was
thinking of doing it the way I would in C (while ! EOF, read, then write
etc). Sigh. I love PHP.

Kate

-- 
"The fool must be beaten with a stick, for an intelligent person 
the merest hint is sufficient"                -- Zen Master Greg




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell