Eugene Posted March 18, 2020 Share Posted March 18, 2020 (edited) Hello, Currently, WHMCS stores the gateway log ( Debug Data ) array as a string in the database. My module needs the debug data to work on and inorder to use the debug data it needs to be an array. Please help me how can I get the gateway log's debug data as array from whmcs. This is very important. Edited March 18, 2020 by Eugene 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 18, 2020 Share Posted March 18, 2020 aren't there newlines in the data field? if so, can't you explode them ?? 0 Quote Link to comment Share on other sites More sharing options...
Eugene Posted March 18, 2020 Author Share Posted March 18, 2020 Yes, we can! but that would not be efficient and might fail in some cases. 😞 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 19, 2020 Share Posted March 19, 2020 20 hours ago, Eugene said: Yes, we can! but that would not be efficient and might fail in some cases. 😞 any technique might fail in some cases when you're not in control of the format of the original string and you're trying to manipulate it.... exploding or regex are about the only options that spring to mind. 0 Quote Link to comment Share on other sites More sharing options...
steph.hope Posted March 20, 2020 Share Posted March 20, 2020 Yeah, it's unfortunate but that seems to be what needs to be done. I also recently found myself needing information that only existed in tblgatewaylog for a hook and had to use regex to get it out 🤕 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.