Solved

how to use ini_set() to set setting in php.ini

Posted on 2008-06-18
3
2,215 Views
Last Modified: 2008-06-23
how to use ini_set() to set setting in php.ini
0
Comment
Question by:firekiller15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 75 total points
ID: 21810968
Hello firekiller15,

http://php.net/ini_set

Regards,

Roonaan
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 25 total points
ID: 21811123
you can set any value to the correspond functions in php.in for example, to have error display, you can set some values like,

<?php

ini_set('display_errors', E_ALL);

?>
0
 
LVL 20

Assisted Solution

by:virmaior
virmaior earned 25 total points
ID: 21813719
actually there are some limitations to using ini_set:

(1) if you are running in PHP's safe_mode, then you won't be able to change very many settings.
(2) you cannot change certain features such as session.gc using ini_set since they happen before the script is evaluated.

but the usage is exactly as Roonan indicates.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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.
The viewer will learn how to count occurrences of each item in an array.
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.

739 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