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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:27:55+00:00 2026-06-14T09:27:55+00:00

E.g <?php //GetParameters here //send response/end connection //keep executing the script with the retrieved

  • 0

E.g

<?php

//GetParameters here

//send response/end connection

//keep executing the script with the retrieved parameters.
  • 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-14T09:27:56+00:00Added an answer on June 14, 2026 at 9:27 am

    You could do this, it just might take some tinkering. Instead of trying to close the connection on the first script, you need to process the data with a different script.

    <?php
    
    //Get Parameters
    
    //Send output to user
    
    //now use curl to access other script
    
    $post = http_build_query($_POST); // you can replace this with a processed array
    
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "http://www.example.com/otherscript.php");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
    curl_exec($ch);
    curl_close($ch);
    
    ?>
    

    otherscript.php

    <?php
    
    header( "Connection: Close" );
    
    // do your processing
    
    ?>
    

    Just to explain, when curl connects it gets a connection closed header so curl quits. Meanwhile the “otherscript” is processing the data with no open connections.

    I’m pretty sure using exec() may also be an option. You could simply call otherscript using php on the command line passing the variables as cmd line arguments. Something like this should work for you if you are running linux:

    exec("nohup php -f otherscript.php -- '$arg1' '$arg2' < /dev/null &");
    

    Now otherscript.php is running in the background under a different process id

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

Sidebar

Related Questions

PHP has some pretty inconsistent parameters for functions (e.g. sometimes first haystack , then
PHP script to read in user action requests and parse them to their components.
I have a $.get() call to a PHP page that takes 4 GET parameters.
In my php page, I recieve a bunch of get parameters. can a file
I'm trying to implement long polling in a php chat script, however the long
I have a php script in a folder (I call it the root folder).
I have 2-dimensional GET parameters like request?a[b]=2 I would like to use the php
I have a PHP script hosted on my site that outputs a value based
I'm writing a PHP script that retrieves steam user profile information (for a servers
If I use GET parameters to change my .php external javascript file to load

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.