Membuat config file di PHP (01)

06 March 2013 16:08:57 Dibaca : 74 Kategori : PHP

File source:

  • config.php
  • config.ini

config.php:

$config = @parse_ini_file("config.ini");
echo $config['nim'];
?>

config.ini:

nim = 531411058;

 

output: 531411058