It is my understanding that …
$fp=fopen($currentfile,”w”) or die(“Cannot open $currentfile”); …
Should create the file and open the file for writing. The actual file name is generated by previous lines. But on my host server, I receive the cannot open file message. NOW …
when I create a “dummy file” by the name that is generated and chmod it for writing, the file is opened and the script goes on just fine. But I need this to happen dynamically.
Also, I have another script that worked for several months that also created and opened files for writing that suddenly stopped working. My host admitted recently switching servers.
What is going amuck? Is this my faullt? Can I correct this is some way?