Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

PHP: script: why doesn't it work?

Posted on 2011-10-06
2
Medium Priority
?
242 Views
Last Modified: 2012-05-12
Hello Experts,

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

thanks,
<?php
ini_set('test', 2);
echo ini_get('test');
?>

Open in new window

0
Comment
Question by:epifanio67
2 Comments
 
LVL 5

Accepted Solution

by:
PragmatiCoder earned 2000 total points
ID: 36927980
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

<?php
    ini_set('test', 2);
    var_dump(ini_get('test'));
?>

Open in new window


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

Author Closing Comment

by:epifanio67
ID: 36927990
got it ... thank you!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …
Suggested Courses

571 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