ok, last question and this script of mine is done 🙂 i have pflogsumm installed on my mailserver and i have completed (completely ugly but functional) mail server admin script in php for use over an https connection from any browser. I want to run the following command and show the results on the landing page when i log in:
pflogsumm /var/log/mail.log
this command works from the command line
i have tried exec() and shell_exec() and i get a blank screen.
is the correct code apparently, all i had to do was to find the right path to the program.
in a view source i get the statistics shown like they do in the command prompt but on the webpage it shows it as a run on sentence…