PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Is the same as calling what the person had above. Which works great if you only wanted to echo the contents, but it isn't very efficient if the person wants to do other stuff later. Perhaps the person wants to write some data back.
If used in the same script, the script would have opened and closed the same file twice when one fopen and fclose would be better use of the file handle.