Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is register_globals in php?

Answers were Sorted based on User's Feedback



What is register_globals in php?..

Answer / subrat

The register_globals setting controls how you access form,
server, and environment variables. By default this variable
is set to Off, requiring you to use special arrays to
access these variables.

Is This Answer Correct ?    47 Yes 4 No

What is register_globals in php?..

Answer / vikash shrivastva

register_globals=On: helps to access all form attribute
without Global Array i.e. GET[], POST[] & REQUEST[]. we can
access all attributes using $+attribute names.
But When register_globals=Off we have to access all
attributes only by Global Arrays

Is This Answer Correct ?    29 Yes 3 No

What is register_globals in php?..

Answer / jai

As same answer. By setting it on we can access the
environment variables using it's variable name

Is This Answer Correct ?    21 Yes 3 No

What is register_globals in php?..

Answer / imteyazhaider

When on, register_globals will inject your scripts with all
sorts of variables, like request variables from HTML forms.
This coupled with the fact that PHP doesn't require
variable initialization means writing insecure code is that
much easier. It was a difficult decision, but the PHP
community decided to disable this directive by default.
When on, people use variables yet really don't know for
sure where they come from and can only assume. Internal
variables that are defined in the script itself get mixed
up with request data sent by users and disabling
register_globals changes this.

Is This Answer Correct ?    20 Yes 6 No

What is register_globals in php?..

Answer / sk wazid hussain

when register_globals is set to ON in php.ini?? When it is
set to ON it registers Environment, GET, POST, COOKIE or
Server variables as global variables i.e. you don’t need to
write $_POST['username'] to access the posted ‘username’
variable you can simply use ‘$username’ to access the
$_POST['username'].

Is This Answer Correct ?    12 Yes 2 No

What is register_globals in php?..

Answer / dinesh waitage

When On, we can access variable any where within the script.
if the register_globals=Off in that time we can't access
variable anther page.

Is This Answer Correct ?    8 Yes 11 No

Post New Answer

More PHP Interview Questions

how many types of inheritance is there in php? name there?

10 Answers  


What is user defined function in php?

0 Answers  


When is a conditional statement ended with an endif?

0 Answers  


Is PHP an open source software?

0 Answers  


When are you supposed to use endif to end the conditional statement?

0 Answers  


hi, i have knowledge about PHP/MYSQL,i am fresher of M.Sc-IT 2009 pass out,any recruitment in PHP please let me know.my email id:nathiyasms@gmail.com

0 Answers  


How can we extract string 'abc.com' from a string "http://info@abc.com" using regular expression of PHP

6 Answers   Wipro,


i want to need upload above 100mb file,i was successfully upload 75mb using .htaccess file ,but i can put 101mb file,it was not upload..please give some tips..local server its work perfectly but online it doesn't work.. .htaccess file details AddHandler application/x-httpd-php .php php_value post_max_size 200M php_value upload_max_filesize 200M php_value memory_limit 300M php_value output_buffering on php_value max_execution_time 259200 php_value max_input_time 259200 php_value session.cookie_lifetime 0 php_value session.gc_maxlifetime 259200 php_value default_socket_timeout 259200

1 Answers  


What is string and its function?

0 Answers  


Why we use get in php?

0 Answers  


Is empty function c++?

0 Answers  


What is difference between session_unset and session_destroy?

0 Answers  


Categories