NYCPHP Meetup

NYPHP.org

Global settings in PHP

Anthony Tanzola anthony at emr.net
Wed May 7 15:32:00 EDT 2003


Hey List!

I am somewhat new to php, though not to web development.  I am attempting to
send information from a web form to a php document.  I then want to create
session variables and have the ability to manipulate the session variables
as needed.

The book I have use examples throughout that require the following setting
in the php.ini file:

register_globals = On

This elevates the need for $_POST["my_posted_data"] when retrieving posted
data.

Also it allows me to register session variables as such:

session_register("variable_1", "variable_2", "variable_3", "variable_4",
"variable_5", "variable_6")

as well as do other things with sessions.

I am wondering what the pros and cons are of setting globals to "on".  It
seams to be a convenience, but are there any downsides or security issues?

Any input would be greatly appreciated.

Thanks,

Anthony Tanzola
EMR Data Services
Phone: 623.581.2875
Fax: 623.582.5499
anthony at emr.net


                   EMR Internet
           A Serious Internet Experience


**  56K Dial-up   **    DSL   **  Web-hosting  **
**  Co-location   **    T1s   **     ISDN      **
**  High-Speed Fiber Backbone ** Linux powered **
**  Support for all Windows & Linux platforms  **
**   Custom Web Design  **   Site Development  **
**  Search Engine Placement & Web Consultation **
****      Visit us at http://www.emr.net!    ****


Ask about our reseller programs!




More information about the talk mailing list