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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:32:25+00:00 2026-06-17T09:32:25+00:00

The docs I read don’t seem clear on this issue. When calling exit() with

  • 0

The docs I read don’t seem clear on this issue.

When calling exit() with no arguments, does the server still send something back to the client?

If so, is there an alternative or way to keep anything from being sent to the client on exit?

  • 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-17T09:32:26+00:00Added an answer on June 17, 2026 at 9:32 am

    exit is basically the same as reaching the end of the file. Anything that has already been sent will be received by the browsers, and any output buffers will be processed and also sent.

    You can force an empty response by include ob_start() as your first line of code, and using this function:

    function exitEmpty() {
        while(ob_get_level()) ob_end_clean();
        exit;
    }
    

    However the headers will still be sent. This just empties the response body.

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

Sidebar

Related Questions

I've read the W3C docs, read the tutorials, read various posts here, still don't
I've read the simplejson docs and don't understand why it sometimes returns a json
I've read some docs about the .NET Garbage Collector but i still have some
I read lot's of docs, tried everything and still can't understand why my template
I've read through some of docs, I've searched for sample concepts, and I'm still
I've read several docs and I don't get it: I know I'm doing something
I'm sorry if this is too simple for some people, but I still don't
Ok so I have read through the Socket.IO docs and I am still a
I read the docs, googled around, but still cannot figure how to read a
I have read a load of the FB docs but I still can't get

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.