I am trying to store the contents of a file to a string through file_get_contents(). But i am getting a error saying
file_get_contents() expects parameter 1 to be string, resource given in /varr/www/html/test/testget.php on line 16
I want to get the contents of the file and the replace cretain lie with a new line and the copy it to the file. So I am trying to get the contents from the file and the perform a string replace function and then write to it.
If this is not a better method please suggest me a good one. Else if any one have a solution please help me out