What does file_get_contents do?
For instance if you have a text file in the same folder and you want to get all the contents, you could use this function do read it into a string, which you can then process as required.
You can also use it to fetch the contents of a webpage for instance as a string and again then process as required.
Comment on this Question and Answer >>>
ASK A QUESTION
More files PHP Questions
how to upload large files like mp3 songs in phpHow can I export data into Word/Excel documents?
Would like to create a web page by using the contents of file#1 as input, writing contents of a variable as content, and ending with contents of file#2. Would you please help me learn how to do this? Here is my attempt: $in1 = 'input1.html'; $in2 =
I am trying to find the most recent directory that I am working in. example http://www.mysite.com/apples/index.php how do I get php to find the directory "apples" so I can make it a directory
Where is a text file i created kept?
