Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Created April 12, 2012 19:35
Show Gist options
  • Save mikedfunk/2370397 to your computer and use it in GitHub Desktop.
Save mikedfunk/2370397 to your computer and use it in GitHub Desktop.
Curl load library
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* contest_config_library
*
* Config for the library to get the contest config via CURL or config->load().
*
* @license Copyright Xulon Press, Inc. All Rights Reserved.
* @author Xulon Press
* @link http://xulonpress.com
* @email info@xulonpress.com
*
* @file contest_config_library.php
* @version 1.0
* @date 03/21/2012
*
* Copyright (c) 2012
*/
// --------------------------------------------------------------------------
/**
* contest_config_url
*
* The URL for the remote config file for CURL.
*/
$config['contest_config_url'] = 'http://whatever.com/filename';
// --------------------------------------------------------------------------
/**
* contest_config_location
*
* Whether local or remote.
*/
$config['contest_config_location'] = 'remote';
// --------------------------------------------------------------------------
/**
* local_config_name
*
* The file name of the local config file.
*/
$config['local_config_name'] = 'contest_config';
// --------------------------------------------------------------------------
/* End of file contest_config_library.php */
/* Location: ./writing_contest/application/config/contest_config_library.php */
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* contest_config_library
*
* Config for the library to get the contest config via CURL or config->load().
*
* @license Copyright Xulon Press, Inc. All Rights Reserved.
* @author Xulon Press
* @link http://xulonpress.com
* @email info@xulonpress.com
*
* @file contest_config_library.php
* @version 1.0
* @date 03/21/2012
*
* Copyright (c) 2012
*/
// --------------------------------------------------------------------------
/**
* contest_config_url
*
* The URL for the remote config file for CURL.
*/
$config['contest_config_url'] = 'http://whatever.com/filename';
// --------------------------------------------------------------------------
/**
* contest_config_location
*
* Whether local or remote.
*/
$config['contest_config_location'] = 'remote';
// --------------------------------------------------------------------------
/**
* local_config_name
*
* The file name of the local config file.
*/
$config['local_config_name'] = 'contest_config';
// --------------------------------------------------------------------------
/* End of file contest_config_library.php */
/* Location: ./writing_contest/application/config/contest_config_library.php */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment