D
D
ds00lon2015-10-22 18:26:43
PHP
ds00lon, 2015-10-22 18:26:43

What ini_set options in php do you recommend using to simplify work and increase site security?

I found some useful settings for myself.
Which ones do you recommend?

<?php
ini_set('display_errors', 1); // отображение ошибок - удобно при разработке
ini_set('error_reporting', E_ALL); // отображение всех ошибок - удобно при разработке
ini_set('session.use_only_cookies', 1); // запрет передачи куки в url 
?>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Aleksey Ratnikov, 2015-10-23
@ds00lon

Start with documentation: php.net/manual/ru/security.php. it goes into great detail on what to pay attention to when paying attention to security in PHP, not just about ini_set(). There and XSS, and SQL Injection, and session highjacking and everything.

A
Alexander Aksentiev, 2015-10-22
@Sanasol

b-safety-B79dJT.jpg

S
sumanai, 2015-10-22
@sumanai

ini_set('display_errors', 1);

Like exactly the opposite effect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question