How to use Filesystem fpassthru in PHP
In this article I am going to explain about fpassthru function in PHP
PHP fpassthru() Function
The filesystem fpassthru function is used to reads all data from current position in an open file.
Syntax of fpassthru function
Parameters in fpassthru function
It has only one parameter:
Parameter |
Description |
filename |
It specifies the file to read. |
Example of filesystem fpassthru function
<html>
<body>
<?php
$filename = fopen("C:\wamp\www\Dinesh\Mcn.txt","r");
fgets($filename);
echo fpassthru($filename);
fclose($filename);
?>
</body>
</html>
|
Output:
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here