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 7529353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:38:22+00:00 2026-05-30T04:38:22+00:00

I have a build a website where users need to login to, and the

  • 0

I have a build a website where users need to login to, and the authentication is based on SESSION variables and DB.

To simplify, let me describe it like this:
I have simple users who belong to groups, and I have group managers. All of them own a subscription. When a group manager decides to upgrade a service, it is done for all his users immediately. I would need to update all subscriptions and I would need to go and charge for each subscription individually.

So. What I need to do is go to the DB, and start going one by one:

1. charge
2. receive status from cc company.
3. update the DB entry accordingly.
4. repeat for next simple user

The thing is, that when a group manager is updating the service, I would need to fire a batch process, which might take a while to complete, but if the group manager closes the browser for some reason (presses the stop button, power goes out, zillion other reasons the connection goes out), the action wouldn’t complete. And users will be left untreated.

I thought the way to go about this would be to start a shell command with a PHP script. I would send the parameters to the script like system(“php batch.php?ID=$group_id?process=all”) which in turn would probably get the job done.

My issue is, that I am used to authenticating my users and the data throughout the website, as said, by SESSION parameters etc. But in this case (calling a system command), I cannot really go and check who actually fired that script. It could be a user, it could be the script I intended.

I would like to prevent users accessing that script, and I want that script to be completed after it has been issued.

How can I accomplish that ? Any other suggestions ?

Thanks!

  • 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-05-30T04:38:23+00:00Added an answer on May 30, 2026 at 4:38 am
    1. Pass the values as argv parameters (php batch.php $group_id all)
    2. Check whether these exist in $_SERVER['argv']

    For the record, $_SERVER['argv'] is the $_GET for the command line. Webpages can’t set argv values, so you’re safe.

    Better of course would be to simply not put this file in your web directory.

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

Sidebar

Related Questions

I have a CMS website written in aspx 2.0 that allows users to build
I need the users to register to my website with login and password. basically
I have build an e-commerce website with CakePHP Framework. Now, i need to implement
I'm trying to build a website that provides a login for users. Once these
I have designed an ERD for a website I am about to build. This
I have built a website and when my users load up http://info.salemgolfclub.org/Account/Logon the username
I have build a simple website with ASP.NET C#. It runs normally after I
I have to build a html website, which will contain about 50+ pages. The
I have got idea of how to build a website in 2 languages, i
I have a website project that I want to build using CruiseControl.net. On one

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.