Friday, May 22, 2009

fopen — Opens file or URL - PHP

$handle = fopen("/home/rasmus/file.txt", "r");
$handle = fopen("/home/rasmus/file.gif", "wb");
$handle = fopen("http://www.example.com/", "r");
$handle = fopen("ftp://user:password@example.com/somefile.txt", "w");
?>
Disclaimer: Any code or advice given is for instructional purposes only. We will not be responsible for any loss or damage caused by using this script.

1 comment:

sarah taylor said...

Thanks for such a beautiful sharing this piece of code with us. economical IT solutions