Nieuw lid |
|
ik heb een raar probleempje met mijn xml bestandje.. maar het volgende zegt denk ik genoeg;
$setting_file = simplexml_load_file('includes/settings.xml');
// global settings
$settings = array();
$settings['site_active'] = $setting_file->global_settings->site_active;
$settings['site_non_active_message'] = $setting_file->global_settings->site_non_active_message;
$settings['site_default_lang'] = $setting_file->global_settings->site_default_lang;
etc. etc. etc.
$setting_file = simplexml_load_file('includes/settings.xml'); // global settings $settings['site_active'] = $setting_file->global_settings->site_active; $settings['site_non_active_message'] = $setting_file->global_settings->site_non_active_message; $settings['site_default_lang'] = $setting_file->global_settings->site_default_lang; etc. etc. etc.
en dit zijn de notices die ik krijg:
Citaat: Notice: Undefined variable: settings_file in C:wampwwwprojectennvcmsincludesconfig.php on line 24
Notice: Trying to get property of non-object in C:wampwwwprojectennvcmsincludesconfig.php on line 24
Notice: Trying to get property of non-object in C:wampwwwprojectennvcmsincludesconfig.php on line 24
Notice: Undefined variable: settings_file in C:wampwwwprojectennvcmsincludesconfig.php on line 25
Notice: Trying to get property of non-object in C:wampwwwprojectennvcmsincludesconfig.php on line 25
Notice: Trying to get property of non-object in C:wampwwwprojectennvcmsincludesconfig.php on line 25
Notice: Undefined variable: settings_file in C:wampwwwprojectennvcmsincludesconfig.php on line 26
Notice: Trying to get property of non-object in C:wampwwwprojectennvcmsincludesconfig.php on line 26
Notice: Trying to get property of non-object in C:wampwwwprojectennvcmsincludesconfig.php on line 26
Notice: Undefined variable: settings_file in C:wampwwwprojectennvcmsincludesconfig.php on line 27
dit alleen met E_ALL, iemand ideetje wat er aan de hand is? ben al tijdje bezig geweest, maar kom er niet uit. en op #php zijn ze ook n iet bepaald duidelijk.
alvast bedankt
|