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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:31:07+00:00 2026-06-10T08:31:07+00:00

I have gone though the tutorial of redis and php. i am currently using

  • 0

I have gone though the tutorial of redis and php. i am currently using predis. I have three files named form.php, submit.php, and mail.php. in form.php i have a simple form. in submit.php i have written a simple code for display something. and inmail.php. i have written some code for sending mail. when i submit form in form.php then it should go on submit.php. and mail.php should start in background. I have written some thing like this:

submit.php

      $client = new \Predis\Client();
  $client->select(4);
      $client->lpush('xxxx',$x['to']);
 $arrOutput=shell_exec('php mail.php');
    print_r($arrOutput);

in mail.php

  require '/var/www/predis/autoload.php';
        \Predis\Autoloader::register();

echo "hi";

require_once('Services/Notification.php');

$client = new \Predis\Client();
      $client->select(4);

$u=$client->blpop('xxxx',0);

var_dump($u);

notification_on_signup($u[1]);

then please tell me how should i configure this thing. so that i can send mail.php in bakground

  • 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-10T08:31:09+00:00Added an answer on June 10, 2026 at 8:31 am

    You can achieve what you want very easily. In most modern JS framework you can submit not only an asynchronous call to server, but also a callback function for success/failure.

    Assuming you use jQuery it would similar to this one:

    $.post('submit.php', function(response) {
        //do you want to do anything with response string?
        //do it now
        $.post('mail.php', function(response) {
    
        });
    });
    

    Check the docs.

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

Sidebar

Related Questions

I'm currently doing facebook integration and have gone through this tutorial . So far,
I'm asking this question because I have gone through the tutorial posted here: Preventing
I have gone through the fadein/fadeout tutorial that is on this page: For the
I have read the boost asio reference, gone through the tutorial and looked at
I have gone through the tutorials of using network resources in android. But I
I have gone through this page... http://www.php.net/manual/en/function.hash.php MD5 is 32 characters long while sha1
I am an absolute novice to django-cms. I have gone through the tutorial and
I have gone through the tutorial for component development at http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!1.7_-_Part_06 . While the
I have gone through every tutorial to display an image on an android phone
I have gone through a long tutorial on W3Schooles to learn CSS; I learnt

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.