PHP fwrite() doesn't work on infinity free

I need help with this, when I test my code on localhost, it works and writes on a .txt file but when I run the code here, it doesn’t do anything, and there are no errors showing up

nvm - got it working

Writing files should be no problem, just make sure the path you’re writing to is correct and is within the folder of the website you’re executing the code in.