I read about PDO and I came across the parse_ini_file function. A number of developers have suggested using this function to parse db parameters rather than hard-coding db parameters in code for security reasons.
My question is for you: does it make sense to make a file readable for every download of your PHP application for this extra "security"?
I wonder how expensive this file is to read ..
php 5.3 in the comments http://www.php.net/manual/en/class.pdo.php
I really don't see how safer it is.
, "config.php" -, , .ini, ( ).
PHP , PHP , , .. . , , .
, PHP . PHP, , .
, PHP ... , , , (, memcache) .
, , db, ini . , 10 3 //. , , php ( ), , , ini/php -.
Probably not. If its .ini file, then the browser can just visit it and download it. At least .php has blank screen decency.
Source: https://habr.com/ru/post/1781926/More articles:jquery slideToggle () for multiple classes - jqueryFilling a namespace inside a module before loading it - pythonHow to stop the service when ACTION_SCREEN_OFF - androidSwitch with pointers - cis xor secure encryption feature? - phpAccumulation XSLT 1.0, summation, multiplication - xsltHow to show pagination images using jQuery DataTables plugin? - jquery-pluginsHow do you generate a random number over a 32-bit limit in PHP? - phpIs there any free software alternative to CCS C compiler? - cUnable to send cookie session - headers already sent - phpAll Articles