Solved

Scopes

Posted on 2009-05-12
1
255 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now