My entire former post tried to tell you
E_WARNING: Check your error_log
This post will start by telling you
FATAL ERROR: Error_log remains unchecked
since this would have provided the reason for why fopen failed to create the file.
But, while the above would have been good, let's have a quick look at everything else you claim instead
Initially: file isn't created.
Now: file isn't created in CWD (current working directory) and no die message is shown
If you had checked your error_log it should in this case have been free of error messages since fopen apparently succeeds (otherwise you would have a die message). This does not necessarily mean that you get a file in your CWD.
You also claim you are using a full path, which makes me wonder
1. Why doesn't your posted code use a full path?
2. If you have a full path, why do you even mention CWD at all?
Why do you tell me that all your other scripts are working? This information is irrelevant.
"I have several cups and glasses at home and only this one is broken. It's not even red."
"I have also tried drinking from an identical-looking cup at work and have no problems at all with it."