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 226 views
2 answers 241 views
1 answer 203 views
1 answer 288 views
1 answer 225 views
1 answer 252 views
1 answer 302 views
...