Jump to content

file_get_contents usage


Pain

Recommended Posts

fopen is good when you want to access a file, in parts.

 

file_get_contents is like using fopen, fget, fclose in a single statement. It's easier.

 

When dealing with huge files, it's generally a good ideal to read it in parts, rather than all at once. This is when you want to use fopen.

 

Pretty much what Barand said.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.