Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

file_get_contents
(1 viewing) (1) Guest
All your queries regarding
PHP Installation,
Binding Apache-PHP-MySQL,
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

file_get_contents

file_get_contents 1 year, 1 month ago #573

  • dhuruv
  • OFFLINE
  • Senior Boarder
  • Posts: 60
  • Karma: 0
What does file_get_contents do?

Re: file_get_contents 1 year, 1 month ago #575

  • patrica
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Karma: 0
file_get_contents 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.
  • Page:
  • 1
Time to create page: 3.97 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download