Solved

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

Posted on 2008-06-18
3
2,195 Views
Last Modified: 2008-06-23
how to use ini_set() to set setting in php.ini
0
Comment
Question by:firekiller15
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
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…
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.

863 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

20 Experts available now in Live!

Get 1:1 Help Now