Salve, ho un file di configurazione "config.php" strutturato in questa maniera:
ora volevo sapere come potevo utilizzare queste variabili fuori dal file, ovvero vorrei utilizzare per esempio la variabile $_CONFIG['host'] in un altro file php.Codice PHP:
<?php
error_reporting(E_ALL);
$_CONFIG['host'] = "localhost";
$_CONFIG['user'] = "root";
$_CONFIG['pass'] = "password";
$_CONFIG['dbname'] = "db_prova";
...
Ho provato ad includere il file config.php, ma la variabile risulta vuota!
Come posso fare?
Grazie!