In my code I create a file called
fopen(): failed to open stream: No such file or directory.
$cookie = 'cookies3.txt';
$myfile = fopen("cookies3.txt", "r") or die("Unable to open file!");
Yep, the file wasn't created.
All thanks to