003
003
PHP fopen() function is used to open file or URL and returns resource.
The fopen() function accepts two arguments: $filename and $mode.
The $filename represents the file to be opended and $mode represents the file mode
for example read-only,
read-write, write-only etc.
Syntax
<?php
$handle = fopen("c:\\folder\\file.txt", "r");
?>