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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:26:20+00:00 2026-06-15T07:26:20+00:00

I have the following which call the exec to run the script test.php in

  • 0

I have the following which call the exec to run the script test.php in the background.

exec("/home/gooffers/test.php?one=one &");

Script test.php contains the following

$test = $_GET['one'];
echo $test;

However this is creating an infinite loop (infinite number of processes) which is crashing the server. Why is this happening.

  • 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-15T07:26:22+00:00Added an answer on June 15, 2026 at 7:26 am

    $_GET is not availible when you are running a script via commandline (php-cli).

    See here on how to pass arguments to a command line script in php: How do I pass parameters into a PHP script through a webpage?

    Basically, it’s

    exec("/home/gooffers/test.php arg1 arg2");
    

    and then fetching them via

    $argument1 = $argv[1];
    $argument2 = $argv[2];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following function in a PHP script, which returns and API call:
I have the following C++ function definition, which I am trying to call through
I currently have a database call which works in one area, but not another.
I have the following table which I'll call 'example' id name last_name 01 Adam
I have the following php code which I found here : function download_xml() {
I have the following call which simply does not work in ie7 or 8
I have the following call which runs a method within a cacheListener object asynchronously:
I have following code which works for radio buttons but need to be changed
I have following query which take more than a minute to execute, how can
I have following method which I am using to load ActiveX control dynamically, Dim

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.