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!
However the './' does not load the file from the root directory. Basically I have a folder inside the root directory, the php file with the above code in is in that folder, i want to read from a file in the root directory.
That's the way to reference root, so unless you define root differently than, likely, the rest of us, your script may not have the permission to read there.