This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Multi Php config module and apache vhost manager
#7
RE: Multi Php config module and apache vhost manager
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

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 Smile
Reply
Thanks given by:


Messages In This Thread
RE: Multi Php config module and apache vhost manager - by elijahbate - 08-21-2014, 09:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
[Request] BoxBilling api module. cyber1995 4 12 ,098 10-23-2021, 05:29 AM
Last Post: sparkrack
Module Repo Beta Chris L 3 6 ,223 08-13-2021, 02:32 AM
Last Post: Chris L
Cloud module repo spoonman 0 2 ,237 02-28-2021, 01:34 AM
Last Post: spoonman

Forum Jump:


Users browsing this thread: 1 Guest(s)