I have an xml file with database information that should be loaded when the script is installed or when the content of the file changes. Can I use md5_file() on the xml file
The simpliest way is to compare the file_date - you can use filemtime for this
filemtime