Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 18th, 2004, 12:02 PM
Authorized User
 
Join Date: Aug 2003
Location: Coeur d\'Alene, ID, USA.
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.
Reply With Quote
  #2 (permalink)  
Old May 18th, 2004, 12:23 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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
::::::::::::::::::::::::::::::::::::::::::
Reply With Quote
  #3 (permalink)  
Old May 18th, 2004, 07:38 PM
Authorized User
 
Join Date: Aug 2003
Location: Coeur d\'Alene, ID, USA.
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:38 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.