03 June 2011

Interview questions PHP Networking

Topic: PHP Networking

Contributed by: Viji.V

Q.How can one access other websites from a php page?

Answer: fopen(http://localhost/websecure/ftp.php, “r”);

The fopen() function that we use to open files is also used to open web pages, because a web page is essentially a file on a server. fopen() has the following modes:

http://www.devshed.com/c/a/PHP/PHP-Networking/

http://www.php.net/manual/en/ref.network.php

No comments:

Post a Comment