PHP: script: why doesn't it work?

Posted on 2011-10-06
Last Modified: 2012-05-12
Hello Experts,

why is it that the 'test' value is not displaying on the browser?

ini_set('test', 2);
echo ini_get('test');

Open in new window

Question by:epifanio67
    LVL 5

    Accepted Solution

    The ini_set function is used to set php configuration values, such as "display_errors", "include_path", etc... all of them come from the php.ini file... so since there is no "test" configuration for php, it can not get the value of it...

    If you try

        ini_set('test', 2);

    Open in new window

    You'll see that ini_get is returning FALSE, cause there is no setting with that name

    Author Closing Comment

    got it ... thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now