Skip to main content
5 events
when toggle format what by license comment
Jan 29, 2016 at 0:02 comment added Kevin Wu ok, it worked. Thanks a lot. It turns out that fwrite() can only log strings as you mentioned. Using print_r, I was able to print the returned array to a log file.
Jan 29, 2016 at 0:01 vote accept Kevin Wu
Jan 28, 2016 at 21:42 comment added Raul Sanchez You can update your question with the updated code, so I can see what are you trying to do. For instance, you cannot log a XXX->getData() as a string, cause it is not a string. Do a print_r(XXX->getData()), and then check what info do you want to log
Jan 28, 2016 at 21:38 comment added Kevin Wu hey, thanks for the reply. I tried your code; however, I still get no data:(
Jan 28, 2016 at 21:34 history answered Raul Sanchez CC BY-SA 3.0