LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2009, 12:56 AM   #1
luvlinux2009
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Rep: Reputation: 0
register globals in php


Hello,

How bad is it to enable register_globals in php?
Does it depend on the usage or is it so bad that it shouldn't be used?
What can possible happen if it's enabled?

Last edited by luvlinux2009; 11-04-2009 at 01:05 AM.
 
Old 11-04-2009, 01:56 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,953

Rep: Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029
Quote:
Originally Posted by luvlinux2009 View Post
Hello,

How bad is it to enable register_globals in php?
Does it depend on the usage or is it so bad that it shouldn't be used?
What can possible happen if it's enabled?
Lots can POSSIBLY happen. But what DOES happen depends on what you do to prevent it, not on from PHP, but Apache, your firewalls, and your code itself. This doc: http://www.php.net/manual/en/security.globals.php covers it pretty well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A quick in C++ about globals and static trist007 Programming 2 07-07-2009 01:09 PM
Apache-PHP - mod_ssl globals missing otie Linux - Software 2 07-28-2007 12:02 AM
Globals in PHP and Smarty ($_GET) vargadanis Programming 6 12-01-2006 07:21 PM
Register Globals problem vnb400 Linux - Newbie 1 04-28-2006 09:51 AM
PHP 5.0 Register Globals and Apache 2.0.50 latino Linux - Software 1 07-21-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration