Solved

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

Posted on 2006-06-25
3
364 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

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…
This article discusses four methods for overlaying images in a container on a web page
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…
The viewer will learn how to count occurrences of each item in an array.

809 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