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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -