I can't find on the web so I'm asking some help over here. I'd like to create a log file, when someone press on a button it will a text to a log.txt file. I'm just looking for the the base code based on Jquery ajax and PHP
Thanks
I can't find on the web so I'm asking some help over here. I'd like to create a log file, when someone press on a button it will a text to a log.txt file. I'm just looking for the the base code based on Jquery ajax and PHP
Thanks
there is no base code for jquery logging to sever
I would recomend using log4javascript library with AjaxAppender, see example here, you can then use setBatchSize to send in batches or setTimed to send with time intervals, see documentation here, also you can setSendAllOnUnload to don't lose messages on browser close (in most cases).
in the server i would use log4php with LoggerAppenderRollingFile see here