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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:13:10+00:00 2026-05-30T19:13:10+00:00

when I do a simple echo of $HTTP_RAW_POST_DATA i get the error: Undefined variable:

  • 0

when I do a simple echo of $HTTP_RAW_POST_DATA i get the error:

Undefined variable: HTTP_RAW_POST_DATA

I read that in php.ini i need to un-tick

always_populate_raw_post_data = On

but i still get the error and I did restart Apache as well. Im using php 5.3.6

  • 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-05-30T19:13:11+00:00Added an answer on May 30, 2026 at 7:13 pm

    If you need to access the raw POST body you should really favor the use of the php://input stream over $HTTP_RAW_POST_DATA as per the relevant manual entry:

    php://input is a read-only stream that allows you to read raw data
    from the request body. In the case of POST requests, it is preferable
    to use php://input instead of $HTTP_RAW_POST_DATA as it does not
    depend on special php.ini directives. Moreover, for those cases where
    $HTTP_RAW_POST_DATA is not populated by default, it is a potentially
    less memory intensive alternative to activating
    always_populate_raw_post_data. php://input is not available with
    enctype=”multipart/form-data”.

    So, to access the POST body using php://input:

    $post = file_get_contents('php://input');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP file with one simple echo function: echo 'アクセスは撥ねりません。'; but when
I want to echo out a simple Facebook like button script in PHP, but
I have a simple server script that just echos a line: <?php echo Server
I've used a simple file_get_contents function but that didn't get the actual contents (output)
My Example Relatively simple layout.xml.php: <?xml version=1.0 encoding=<?php echo sfConfig::get('sf_charset', 'UTF-8') ?>?> <example> <?php
I have this simple php script <?php echo '<pre>'; // Outputs all the result
Imagine this simple form <form action=<?php echo $_SERVER['REQUEST_URI']; ?> method=post> <fieldset> <legend>Contact Me</legend> <label
I'm new to the Echo 2 framework. I think it should be simple, but
It seems as though my simple php echo statement will not allow me to
I have a simple html page that only uses PHP in two places <?php

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.