diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-03-19 10:51:09 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-03-19 10:51:09 -0700 |
commit | af6fd06aa21cebb7ac601abfc130db137bb705e5 (patch) | |
tree | 71bb76940ec17c9da6435113888ba3898f6122be /php_http_client/config.php | |
parent | 2d1091d3625d0a063880b6f6e616c00c6dd2547d (diff) | |
download | php-http-client-af6fd06aa21cebb7ac601abfc130db137bb705e5.zip php-http-client-af6fd06aa21cebb7ac601abfc130db137bb705e5.tar.gz php-http-client-af6fd06aa21cebb7ac601abfc130db137bb705e5.tar.bz2 |
Added Config
Diffstat (limited to 'php_http_client/config.php')
-rw-r--r-- | php_http_client/config.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/php_http_client/config.php b/php_http_client/config.php index e69de29..ba33bef 100644 --- a/php_http_client/config.php +++ b/php_http_client/config.php @@ -0,0 +1,11 @@ +<?php +class Config{ + function __construct($base_path, $config_filename){ + $handle = fopen($base_path.'/'.$config_filename, "r"); + while (($line = fgets($handle)) !== false) { + putenv(trim(preg_replace('/\s+/', ' ', $line))); + } + fclose($handle); + } +} +?> |