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

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.

ASK A QUESTION

More files PHP Questions

How can I export data into Word/Excel documents?

How do i keep my site menu in one file?

How can i upload large files like mp3 songs using php?

how do i upload a file to database

i have a VPS(OS:windowsServer2003) with 1Gbps InternetSpeed ,and i install FilezillaClient and WampServer on this vps,and i have a netload.in account,i uploaded file(size:4GB)by filezilla client to netload ftpserver and speed of uploading was goood,but wh



Custom Search