在php中创建配置文件 [英] creating configuration file in php

查看:227
本文介绍了在php中创建配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建配置文件,它将有应用程序id和更新路径两个变量,当我将传递应用程序id在api它将返回该应用程序id的更新路径。
我将如何实现这个配置文件的制作。

i want to create the configuration file , which will have the application id and update path two variable , when i will pass the application id in the api it will return the update path of that application id . how i will achieve this making of configuration file.

关于

rahul

推荐答案

我已经做了一个数组

    $config = array (
        "{b0ff543d-d294-42c8-83eb-d72161ec6771}"  => '/var/www/youngib/rahul/'
    );
$source=$config[$_REQUEST['applicationid']];

感谢

rahul

这篇关于在php中创建配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆