IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
PHP
Search PHP Group:

Advanced
-Collapse +Expand PHP Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► KBWebsite Scri...PHP   Print This     
  From the November 2015 Issue of Prestwood eMag
 
Changed PHP Global Variables
 
Posted 21 years ago on 5/12/2003
Take Away: PHP has become more conformed to CGI specifications and as such, you will need to make changes to your code in order for global variables to be filled in.
 Tags: PHP , CGI , global variables

KB100243

According to the deveoplers of PHP, PHP has become more conformed to CGI specifications. As such, you will need to make the following changes in order for global variables to be filled in. Included below is a list of environment variables that have changed in this latest version of PHP. As an example, if you have referenced the PATH_TRANSLATED variable in your scripts, you would need to change that to ORIG_PATH_TRANSLATED.

From:

  • PATH_TRANSLATED
  • PATH_INFO
  • SCRIPT_NAME
  • SCRIPT_FILENAME

To:

  • ORIG_PATH_TRANSLATED
  • ORIG_PATH_INFO
  • ORIG_SCRIPT_NAME
  • ORIG_SCRIPT_FILENAME

For more information, check bugs.php.net/bug.php?id=21575.

As a side note, this release of PHP will also ensure that image support is enabled. The GD libraries are supported in this release and we did confirm that both JPEG and PNG image support is included in this release.


Comments

0 Comments.
Share a thought or comment...
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1116A1
Enter key:
KB Post Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains play-drums.com and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #100243 Counter
12976
Since 4/2/2008
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2024 Prestwood IT Solutions.   [Security & Privacy]