enable global variables in php

Posted on 2006-04-24
Last Modified: 2012-05-05

I am tracking down a problem that I referenced in Q_21824725.html

I have just moved to a new server and apparently I cannot use global variables as I used to.  I would like to reenable this as it was in teh past.

I guess that there is a setting called global_variables that is set to "off" by default.  How do I set this to "on"?  I have root access on this server so there should be no problem with me being able to change this setting if I knew how.

Thanks very much.

Question by:skykuhl
    LVL 49

    Accepted Solution

    Then you could best look for it in your php.ini.

    When you have multiple domains on your server and are running apache, you can also set this in the vhosts section of your apache conf.


    Author Comment

    Yes this is exactly correct.

    On this server in question I found this file in /usr/local/lib

    Thanks again.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now