apache_getenv()函數在phpstudy中 apache+php5.4n 5.3n都不行

Fatal error: Call to undefined function apache_getenv() in 

只有在5.3中可以。


apache_getenv 在vhsot中用setEnv配置,可以用get_env,或者 $_SERVER取出




<VirtualHost *:80>
    DocumentRoot "/Users/edison/PhpstormProjects/li/koh"
    ServerName ud3.com
    ErrorLog "/private/var/log/apache2/sites-error_log"
    CustomLog "/private/var/log/apache2/sites-access_log" common
 SetEnv db_host 192.168.1.156
 SetEnv db_port 3306
 SetEnv db_name li
 SetEnv db_user wb
 SetEnv db_passwd wbc
 SetEnv sina_appkey 1283
 SetEnv sina_appsecret 0f41a
 SetEnv tecent_appkey 801
 SetEnv tecent_appsecret fd3e
        <Directory />
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order deny,allow
                Allow from all
      </Directory>
</VirtualHost>






發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章