Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 18th, 2004, 12:02 PM
Authorized User
 
Join Date: Aug 2003
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tachyon
Default PHP - register_globals off/on

I'm quite new to PHP and I have some questions on the register_globals setting. I have installed PHP version 4.3.6 on a Windows XP machine that has no network/Internet connection.

I wrote a little file that uses the phpinfo() function to show me my settings. register_globals is set to off. I pulled up my php.ini file and changed register_globals from "Off" to "On" but my settings list still says register_globals is "Off" for both Local Value and Master Value. How do you change the register_globals setting?

I've heard that it's best to have register_globals set to "Off" for security reasons. If that's the case, how do you change your programs so that they'll still function?

__________________
An overworked Web Developer who\'s expected to know everything yet given time to study nothing.
 
Old May 18th, 2004, 12:23 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Read the following links for more information on register_globals:
http://p2p.wrox.com/archive/beginnin...2002-11/17.asp
http://www.google.com/search?q=regis...e:p2p.wrox.com

If the ini change isn't taking effect it probably means you need to restart the HTTP server.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old May 18th, 2004, 07:38 PM
Authorized User
 
Join Date: Aug 2003
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tachyon
Default

Restarting the Apache server took care of it. Thanks!

I've been reading those links you posted. A little intimidating for a newbie like me but I'll keep at it.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 8 and register_globals off Oregon BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 July 26th, 2005 03:26 PM
Does the code work with register_globals off? GraphicArmy BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 April 6th, 2004 10:10 PM
register_globals lunadellest Beginning PHP 1 September 20th, 2003 11:33 AM
Beginning PHP4 register_globals=Off Cambo BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 August 30th, 2003 02:34 PM
register_globals=Off Cambo BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 August 15th, 2003 03:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.