We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

nicolaspar on 02/28/07


Tagged

fix php version old


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

vali29


PHP - Take care for older PHP versions


Published in: PHP 


  1. #Simple
  2. if (isset($HTTP_GET_VARS) and ! empty ( $HTTP_GET_VARS ) ) {
  3. $_GET = $HTTP_GET_VARS;
  4. }
  5.  
  6. if ( isset( $HTTP_SERVER_VARS ) and ! empty( $HTTP_SERVER_VARS ) ) {
  7. $_SERVER = $HTTP_SERVER_VARS;
  8. }

Report this snippet 

You need to login to post a comment.