Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Scopes

Posted on 2009-05-12
1
Medium Priority
?
283 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 200 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

971 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