本文整理匯總了PHP中ConfigFile::write方法的典型用法代碼示例。如果您正苦於以下問題:PHP ConfigFile::write方法的具體用法?PHP ConfigFile::write怎麽用?PHP ConfigFile::write使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ConfigFile
的用法示例。
在下文中一共展示了ConfigFile::write方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
ConfigFile::write("define( 'NQ_API_SHARED_HOST',\t'http://" . $_POST['app_create_dev_domain'] . "/api/' );");
ConfigFile::write("define( 'NQ_API_HOST_AUTH', \tNQ_API_SHARED_HOST . 'auth' );");
ConfigFile::write("define( 'NQ_API_HOST_DATABASE', \tNQ_API_SHARED_HOST . 'db' );");
ConfigFile::write("define( 'NQ_API_HOST_IMAGE',\tNQ_API_SHARED_HOST . 'img' );");
ConfigFile::write("define( 'NQ_API_HOST_FILE', \tNQ_API_SHARED_HOST . 'file' );");
ConfigFile::write("define( 'NQ_API_HOST_EMAIL', \tNQ_API_SHARED_HOST . 'email' );");
# Place for table aliases
ConfigFile::write(['', '', '# Database Table Aliases']);
ConfigFile::write('/* Add Database Table Aliases for Development here */');
ConfigFile::write(['', 'break;', '', '']);
ConfigFile::tab(-1);
}
# Ending the switch
ConfigFile::tab(-1);
ConfigFile::write('}');
ConfigFile::write('');
}
}
# Logging
$G_OUTPUT_RESULTS[] = ' - Closing the config file.<br />';
# Closing the config file
ConfigFile::close();
}
# Advanced install of storage servers
if ($_POST['install-mode'] == 'advanced' && (isset($_POST['create_database_host']) && $_POST['create_database_host'] != '' || isset($_POST['create_storage_host']) && $_POST['create_storage_host'] != '')) {
# Storage Servers header
create_header('Storage Servers', $G_OUTPUT_RESULTS);
# Adding controller to database host
if (isset($_POST['create_database_host']) && $_POST['create_database_host'] != '') {
# Creating image host
$G_OUTPUT_RESULTS[] = ' - Creating database host.<br />';