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

  • Home
  • SEARCH
  • 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 8616185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:33:27+00:00 2026-06-12T05:33:27+00:00

i searched for a solution to make an asynchronous page request and found these

  • 0

i searched for a solution to make an asynchronous page request and found these lines of codes. (actually i editted a little bit)

function do_the_thing()
{
   $parts = parse_url("mail_sender.php");
   $fp = fsockopen($parts['host'], isset($parts['port']) ? $parts['port'] : 80, 
                   $errno, $errstr, 30);
   $out = "POST " . $parts['path'] . " HTTP/1.1\r\n";
   $out.= "Host: " . $parts['host'] . "\r\n";
   $out.= "Content-Type: application/x-www-form-urlencoded\r\n";
   $out.= "Connection: Close\r\n\r\n";
   fwrite($fp, $out);
   fclose($fp);
}

so i have a mail_sender.php that sends an e-mail AUTOMATICALLY but with this asynchronous call, it doesn’t send anything. Am i missing somthing here? I am calling function in another page so page load continues without waiting the mail sending process. Only problem is, i seem to be unable to request the page or page is requested but doesn’t do the job.

  • 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-12T05:33:29+00:00Added an answer on June 12, 2026 at 5:33 am

    Just looking at the first two lines of your function, you have a problem:

    parse_url("mail_sender.php") gives you an array with one element (see example):

    array(1) {
      ["path"]=>
      string(15) "mail_sender.php"
    }
    

    So you are calling fsockopen without the first – required – parameter.

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

Sidebar

Related Questions

HI.I searched this question inform and I found solution to change column property Unique
I've searched for the solution for this everywhere and have not found an answer,
I Googled and searched here for the solution, the only thing I've found it
I searched on the forum / Internet for the solution how a PropetryInfo object
I searched everywhere but didn't find the solution. I have image 1. How can
I have searched for a general solution to this but only find answers to
I have searched online for a solution, but have yet to find one that
I've searched forums for a solution, but the examples aren't making sense to me.
I've searched google and SO for a solution to this problem but have not
i searched through Stack overflow but fail to find a solution in regards to

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.