Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8560121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:12:20+00:00 2026-06-11T16:12:20+00:00

ok, last question and this script of mine is done :) i have pflogsumm

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:12:22+00:00Added an answer on June 11, 2026 at 4:12 pm
    <?php echo shell_exec('/usr/sbin/pflogsumm /var/log/mail.log'); ?>
    

    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…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, so this is a carry on from my last question, but I have
this follows on from my last question which I thought was answered but for
This is a followup to my last question . I now have a byte[]
I posted this question last week, but I wasn't very clear on what was
I'm going to give this another try because my last question might have been
This is based on my last question. I have these arrays: var array1 =
This is related, but not identical to my last question . So I thought
I just realized I messed up on my last question. I'm using this script
Closely related to this question: Bash printf prefix I have the following Bash script
My last question was somewhat narrower than this one. I am interested to know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.