Okay so I have made my module the code in theory should work but I am having some issue when running code as a module.
I was using following code
Using that code in a clean php page from zpanel/sentora directory works but in module no go. I have tried a heap of different combinations in module like fs_filehandler::CreateFile, fs_filehandler::UpdateFile
weirdly I have no problems reading the files though.
I have been trying to use the logging structure but as soon as a reference the global for it the php process stop get a white page on function run.
Any help would be appreciated
I was using following code
Code:
//At this point custom.ini doesnt exist
//This should attempt to create
$tempStr = 'all lines from file';
$iniFile = fopen($customINI,'w');
fwrite($iniFile,$tempStr);
fclose($iniFile);
Using that code in a clean php page from zpanel/sentora directory works but in module no go. I have tried a heap of different combinations in module like fs_filehandler::CreateFile, fs_filehandler::UpdateFile
weirdly I have no problems reading the files though.
I have been trying to use the logging structure but as soon as a reference the global for it the php process stop get a white page on function run.
Any help would be appreciated