I want to make a flat files database which will use .php files to store data from the website. My only problem is that if when I \'select\' something from the flatfile datab
Please Try this It worked on my case....
if(readyToRead(__FILE__)){
echo "File is ready to read.";
} else{
echo "File is used by somebody else.";
}
function readyToRead($file){
return ((time() - filemtime($file)) > 5 ) ? true : false;
}
look into flock()
http://php.net/manual/en/function.flock.php