1

As, we know to change some services or adding or disabling and services we always need to restart the server in the services. But how is it different to use ini.set function and it works without refreshing the server.

Is it possible,that these set.ini function gets itself saved in cache and use itself for a particular operation. Another way can be , That it uses itself like a constructor.

For example-

ini_set("SMTP","ssl://smtp.gmail.com");
ini_set("smtp_port","465");

We can change that in php.ini files itself and refresh the services to run this. But with ini_set it works without doing this ? HOW? How, can we access that in between server and browser to alter the details of php.ini to check the security flaw. THANK YOU in Advance.

  • [Which is better php.ini vs ini_set()](https://stackoverflow.com/questions/20000111/which-is-better-php-ini-vs-ini-set) – Masivuye Cokile Apr 30 '19 at 10:04
  • **Hello Cokile**, other part of my question is , how can i access the settings of php.ini between the execution of command. – mujtaba siddiqui Apr 30 '19 at 10:06
  • and why dont we need to **restart the services cause our server is running on previous setting** when using ini_set – mujtaba siddiqui Apr 30 '19 at 10:09
  • 2
    Possible duplicate of [Which is better php.ini vs ini\_set()](https://stackoverflow.com/questions/20000111/which-is-better-php-ini-vs-ini-set) – Tobias F. Apr 30 '19 at 10:18

0 Answers0