Solved

Scopes

Posted on 2009-05-12
1
265 Views
Last Modified: 2013-12-13
On my WAMP server I can call $_SESSION['var'] simply by $var.  I don't like this.  It's impressice and it also breaks on my LAMP box.

How can I disable this?
0
Comment
Question by:M256
1 Comment
 
LVL 16

Accepted Solution

by:
jessc7 earned 50 total points
ID: 24370060
I believe you want to turn off register_globals in the php.ini configuration.

In your php.ini file, look for register_globals and set to Off:
register_globals = Off

Here is background information:
http://us3.php.net/manual/en/ini.core.php#ini.register-globals
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question