Good day. Basically, I've been searching around without results. I'd like to output the result of a shell command with PHP. Is it possible to do the above? E: Nevermind, someone delete ASAP please.
you can use the shell_exec function. string shell_exec ( string $cmd ) It returns the complete output of the shell command as a string.
Adding few cents: special quotes grave accent `, they are neither single nor double quotes, $output = `dir/p`; //command it will assign the resulting directory sorting by pagewise to varible $output. regards