debugging - PHP debuging printing into command line -


i have php server, , want create function receive variable , print terminal/command line open @ same time.

any idea how can done? linux based server or wamp, doesn't matter

you can write variable file , "tail" file on terminal.

function writelog($msg) {     file_put_contents(file_path,$msg);   } 

you can use error_log function instead of file_put_content. not sure whether error message or not.

on terminal run

tail -f file_path 

p.s. file_path absoulte path of file want write data.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -