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!
The main issue is that file() only reads the file into an array and does not execute the code within. Have a look at the eval() function and for simplicities sake probably file_get_contents().