How to use file_get_contents() function to read entire file into a string in PHP

1 Answer

0 votes
$lines = file_get_contents('c:/xampp/htdocs/knowrex.com/index.php');
   
echo $lines;


/*
run:

"; echo "Error: $errstr
"; echo "mysql_ping : " . (mysql_ping($con) ? "LIVE" : "DEAD") . "
"; echo "Line : $errline
"; echo "
"; } // ------------------------------------

...
 
*/

 



answered Apr 20, 2016 by avibootz

Related questions

1 answer 239 views
2 answers 252 views
1 answer 211 views
1 answer 304 views
1 answer 234 views
1 answer 260 views
1 answer 324 views
...