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
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!