Answers for "read file content php"

PHP
7

php get file contents

<?php
file_get_contents("file.txt");
?>
Posted by: Guest on May-12-2020
0

read file data using php

<?php

$fh = fopen('filename.txt','r');
while ($line = fgets($fh)) {
  // <... Do your work with the line ...>
  // echo($line);
}
fclose($fh);
?>
Posted by: Guest on July-19-2021
-1

transfer file using file_get_content

$header = 'Content-Type: multipart/form-data; boundary='.MULTIPART_BOUNDARY;
Posted by: Guest on March-24-2020

Browse Popular Code Answers by Language