summaryrefslogtreecommitdiffstats
path: root/php_http_client/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'php_http_client/config.php')
-rw-r--r--php_http_client/config.php11
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);
+ }
+}
+?>