PHP - Read file contents to a string value
By [)ia6l0 iii
Use the file_get_contents method to read the file contents.
The following line of code reads the content of the file to a variable named 'file_content'.
$file_content = file_get_contents('../filetoberead.etf');
echo $file_content ;
Related FAQs
Use the $_GET function to read querystring values.
For e.g. the following line reads a querystring key - qs
PHP - Read file contents to a string value (1408 Views)