Im trying to compare the creation date, and current date to do some operations depending on the outcome, the thing is, during my local development, everything was fine, all worked like a charm, but when i upload my script to the webhost, everything went down south, the following code
echo $date_modified = date ("F d Y H:i:s.", filemtime($file)); //date of modification of the file
Gives me the same result as
echo $current_time = date("F d Y H:i:s."); //the current time
¿ How is that even possible and why ?.
EDIT
More on the subject, as i tried and tried to debug the script, i finally found out that, apparently, the sever is actively modifying the text file the php script is creating and placing 'null' on the file, ¿for what reason? i'm really not sure, but it seems like this is a problem related to the hosting, so i guess i'll have to search for a new hosting, as i really needed the file to be created to be able to cache some information without overloading the web service that was providing the information to fill in the file.