Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 24, 2008, 10:58:11 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Changing PHP register globals  (Read 949 times)
ComputerLady
Intergalactic Cowboy
*****
Offline Offline

Posts: 59


WWW
« on: March 03, 2008, 11:24:43 AM »

I'm not sure where to turn on this one, so starting here. In process of updating Drupal to latest version (6.1), I had a notice that my PHP register globals is set to on, when it should be set to off. (Seem to remember a situation a year or so ago, when the reverse had to be in effect!  Doh ) Was poking about here and, while saw something on PHP.INI, I can't seem to find this in my hosted space. Or is this something you folks will have to change? Thanks!

Logged

<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>
The Computer Lady!
Design COMP - Web Development/Multimedia Productions
CEBUG - President/Webmaster
Please do not contact by IM until contact established by some other means!
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3106



« Reply #1 on: March 03, 2008, 06:55:50 PM »

Look here: PHP and Register Global Variables for far more than you would ever want to know about the subject. Modern software should no longer require register global variables to be "on", while older levels frequently made use of them (needed them set "on"). It sounds like you're just getting a warning that Drupal no longer requires register globals to be on, and is alerting you that you do have them on anyway.
Logged

ComputerLady
Intergalactic Cowboy
*****
Offline Offline

Posts: 59


WWW
« Reply #2 on: March 09, 2008, 04:32:54 AM »

Look here: PHP and Register Global Variables for far more than you would ever want to know about the subject. Modern software should no longer require register global variables to be "on", while older levels frequently made use of them (needed them set "on"). It sounds like you're just getting a warning that Drupal no longer requires register globals to be on, and is alerting you that you do have them on anyway.

Creating the php.ini file as described, adding in the line to indicate that variable should be set to off seems to have done the trick! Yeah, back when I first setup my account with LP, I know it had to be enabled to make things work. Boy, have things changed since then!

Next, I need to figure out if I can simply upgrade the PHP version in use on my site to 5.x without any worries for Drupal. That will mean that (finally!) there will be a closer match between what I'm using in my local install (thru XAMPP) and what is actually ON the server. If I keep going ahead with my plans for writing my own PHP modules for Drupal, that is!
Logged

<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>
The Computer Lady!
Design COMP - Web Development/Multimedia Productions
CEBUG - President/Webmaster
Please do not contact by IM until contact established by some other means!
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3106



« Reply #3 on: March 09, 2008, 07:32:26 AM »

Good to hear that Drupal has shut up about the register global variables. As I said before, having them on probably caused no harm for Drupal, but it was just warning you that they were still on. If you have other software that still makes use of register globals, you can either leave them on and put up with the warnings (probably only during Drupal setup), or make separate php.ini and .htaccess files for Drupal and the other software (but that other software should eventually be updated not to use register globals).
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM