function _set_gammurc_($var_handphoneno) { require_once "../" . def_directory_classes_master . "class_handphone.php"; $var_class_handphone = new _class_handphone_(); if ($var_class_handphone->_is_primary_exist_($var_handphoneno)) { $var_class_handphone->_set_handphone_($var_handphoneno); $var_class_handphone->_set_data_($var_handphoneno); $var_contents = '[gammu]' . "\n" . 'model=' . $var_class_handphone->var_model . "\n" . 'port=' . $var_class_handphone->var_port . "\n" . 'connection=' . $var_class_handphone->var_connection . "\n"; $var_file = fopen("../gammu/gammurc", "w"); $var_file2 = fopen("gammurc", "w"); fputs($var_file, $var_contents); fputs($var_file2, $var_contents); fclose($var_file); fclose($var_file2); } }