PHP Scripts for Interacting with Networks
Dec 15, 2010, 20:05 (0 Talkback[s])
(Other stories by Leidago Noabeb)
"PHP has a great many tools for interacting with a network and
also with the Internet. In this article, I examine some of those
tools and functions to show how exactly you can use them to make
your scripts more useful in a network environment. Click here to
download the accompanying source code.
"Accessing Other Websites with PHP
"Accessing other sites with PHP is extremely easy, but why would
you want to do that? If you just want to get information from a
website (for instance, a website that offers weather reports for a
city that is of interest to you), then you can write a spider to
get that information and more.
"In PHP, you access a website in pretty much the same way that
you would access a text file on your hard drive -- by using
fopen().
fopen(http://localhost/websecure/ftp.php, "r");
Complete Story
Related Stories: