Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;<?php
- ;die(); // For further security
- ;/*
- [database]
- driver=mysql
- host=localhost
- port=3306
- schema=base
- username=root
- password=
- ;*/
- ;<?php
- ;die(); // For further security
- ;/*
- [database]
- driver="mysql"
- host="localhost"
- port="3306"
- schema="base"
- username="root"
- password=""
- ;*/
- ;<?php
- ;die(); // For further security
- ;/*[database]
- host="localhost"
- user="root"
- pass=""
- schema="base";*/
- $file ='__config.ini.php';
- $config=parse_ini_file($file);
- $host = $config['database']['host'];
- echo $host;
- $user = $config['database']['user'];
- echo $user;
- $pass = $config['database']['pass'];
- echo $pass;
- $schema = $config['database']['schema'];
- echo $schema;
- ;<?php
- ;die(); // For further security
- ;/*
- [database]
- driver="mysql"
- host="localhost"
- port="3306"
- schema="base"
- username="root"
- password=""
- ;*/
- <?php
- $config=parse_ini_file($file);
- echo $config['driver'];
- echo $config['host'];
- <?php
- $config=parse_ini_file($file, true);
- echo $config['database']['driver'];
- echo $config['database']['host'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement