php get file contents
<?php
file_get_contents("file.txt");
?>
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);
?>
take file data in variable php
ob_start();
include "yourfile.php";
$myvar = ob_get_clean();
reference :
https://stackoverflow.com/questions/1272228/how-do-i-load-a-php-file-into-a-variable
https://secure.php.net/manual/en/function.ob-get-clean.php
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us