Jump to content

File_get_contents()


Cod-nes

Recommended Posts

PHP has many functions that do the samething or are a little different.From php.netfile_get_contents() is the preferred way to read the contents of a file into a string. It will use memory mapping techniques if supported by your OS to enhance performance.You can use file(), but that returns an array with each line being an element of that array.

Link to comment
Share on other sites

If you are retrieving the file from a remote server that is blocking the direct HTTP request (the Digg API does this, for example), then you can use an extension like cURL...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...