Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file_get_contents

Status
Not open for further replies.

DeMoss

Programmer
Dec 24, 2004
2
US
What is the proper way of using file_get_contents? Do I have to use fclose() to tidy up or what? I just don't want to cause problems on the server end.

Thanks

Gary DeMoss
Scrub Radio Station Manager
 
file_get_contents() reads the entire file and returns a string. There's no tidying required -- there is no file handle floating around which you might use in your tidying.




Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thanks for your quick response. I worry alot because my old webgame got kicked off it's server for using to many resources and I didn't know about having to close all my files and database connections back then.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top