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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:03:31+00:00 2026-06-13T05:03:31+00:00

I need to run a legacy PHP application in a shared hosting environment. I

  • 0

I need to run a legacy PHP application in a shared hosting environment. I have promised my customer I’ll support that legacy application for some time but I found that it doesn’t work because it widely uses the deprecated $HTTP_POST_VARS.

Downgrading PHP is not an option. Patching the application could be infeasible because the PHP files are generated from a Windows executable file (I’m not kidding!) and every time the site is regenerated from desktop we could lose modifications.

I’m asking if there is a way to tell PHP to reintroduce $HTTP_POST_VARS for all websites on a host or just for a particular vhost. Any other option/suggestion is appreciated

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

    You can do this

    config.php

    $HTTP_POST_VARS = &$_POST;
    $HTTP_GET_VARS = &$_GET;
    $HTTP_COOKIE_VARS = &$_COOKIE;
    

    .htaccess

    php_value auto_prepend_file /path/to/config.php
    

    PHP doc auto_prepend_file string

    Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the require function, so include_path is used.

    The special value none disables auto-prepending.

    EDIT: To be extra thorough, these are the other superglobals that could also be aliased:

    $HTTP_SERVER_VARS = &$_SERVER;
    $HTTP_POST_FILES = &$_FILES;
    $HTTP_SESSION_VARS = &$_SESSION;
    $HTTP_ENV_VARS = &$_ENV;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a legacy program that I need to run with the extension of
I need to run the application that I have made in Xcode on my
To add support for some new features in a VB3.0 legacy application, I need
We've inherited some legacy software that we need to run quite urgently. It was
I need to run some classic ASP locally before deployment to a legacy web
I've a legacy application using Asp.Net WebSite (winforms...) and I need run a background
I need to run a query against a legacy table that stores URL encoded
I have a paradox table from a legacy system I need to run a
I'm adding new features to a legacy application written in PHP that uses an
I need to support some legacy code on a server where I need 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.