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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:49:42+00:00 2026-06-07T03:49:42+00:00

Using PHP 5.3 as php5_module in Apache 2.2 on Windows 7. Where does stdout

  • 0

Using PHP 5.3 as php5_module in Apache 2.2 on Windows 7.

Where does stdout go in the above configuration?

Tested with following code:

<?php
    $stdout = fopen('php://stdout', 'w');
    fwrite($stdout, "stdout<br />\n");

    $output = fopen('php://output', 'w');
    fwrite($output, "output<br />\n");
?>

This only displays output in the browser. What happens to stdout?

  • 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-07T03:49:43+00:00Added an answer on June 7, 2026 at 3:49 am

    As the manual shows on the php:// wrappers manual page:

    php://output is a write-only stream that allows you to write to the
    output buffer mechanism in the same way as print and echo.

    So if you want to write output to the browser, use php://output

    On the other hand, php://stdout

    allow direct access to the corresponding input or output stream of the
    PHP process.

    In the case of Apache, this output is Apache’s stdout handle which is generally never seen anywhere because this is console output for Apache and it is usually run in the background. If you were to run Apache in the foreground on your console, anything you write to php://stdout would be visible on the console. Since Apache is run in the background, no stdout data is captured or written anywhere normally.

    To test this, follow these steps:

    • Run Apache in the foreground (e.g. /usr/local/apache2/bin/httpd -D FOREGROUND -k start)
    • Leave the console window open
    • Run your script from the browser
    • Look for your stdout output on the console.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Apache 2.2 on windows 7 to play a little with php5 code
I have PHP 5.2.14 installed on a Windows box (installed via .msi) using Apache
I'm using PHP 5.2 with Oracle Database 11.1. The code $query = oci_parse($conn, SELECT
I am using PHP 5.2 on SUN OS server. Having problems with the following
I compile Apache-MySQL-PHP by hand to build a custom install using the configure options
I use php+ apache on Fedora 16 fc16.x86_64. I'm learning php and sqlite3 (using
i compiled myself apache2 and php5.2 using this guide http://dan.drydog.com/apache2php.html i tested php with
System: Apache 2.2 running on Windows 2008 Server with PHP 5.2.17 VC6 Thread-Safe as
We have an issue using the PEAR libraries on Windows from PHP . Pear
I am installing a server for PHP using FCGI and apache with worker MPM

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.