Solved

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

Posted on 2008-06-18
3
2,188 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
Comment Utility
Hello firekiller15,

http://php.net/ini_set

Regards,

Roonaan
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 25 total points
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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.  …
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 and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 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

13 Experts available now in Live!

Get 1:1 Help Now