你会认为我应该在Google上找到这个,但是我不知道。从PHP中的config.ini中读取值
的config.ini
[ENVIRONMENT]
env = prod
js_path = js/
css_path = css/
;host= www.xxxxxxxx.com
host=http://localhost:8080/home
test = 0
我需要阅读主机这里的值:
<?php
header('Location: ?????????????????');
echo 'Thank you for contacting us. We will be in touch with you very soon.';
}
?>
有谁知道?
检查['parse_ini_file()'](http://php.net/manual/en/function.parse-ini-file.php) – pNre
真的吗?谷歌'读取ini文件',第一个链接... –
我认为你只是懒惰地使用谷歌:https://www.google.com/search?q=reading%20values%20from%20config.ini%20in %20PHP。只是搜索你的标题。 – idmean