Solved

How do I check if register globals are on or off?

Posted on 2006-06-25
3
372 Views
Last Modified: 2008-03-06
not using phpinfo(), off course ;)
0
Comment
Question by:huy302
  • 2
3 Comments
 
LVL 37

Expert Comment

by:Harisha M G
ID: 16979834
Hi, see this:

http://www.php.net/ini_get

---
Harish
0
 
LVL 37

Accepted Solution

by:
Harisha M G earned 50 total points
ID: 16979835
echo 'register_globals = ' . ini_get('register_globals') . "\n";
0
 

Author Comment

by:huy302
ID: 16979844
can't ask for more ;)
thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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 …

830 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