PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

What does file_get_contents do?


This reads an entire file into a string.

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 do I open a file to write content to?

Hello, I have a php file that has octet binary numbers in it. How can I see the actual wording? This is an example of how it look: 00111010 11010010 And so on.

Where is a text file i created kept?

How can I view a Word document in a PHP page?

How can i print a file without opening it ?



Custom Search