我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP转换版本5.6到7而不使用export PATH = / usr / local / php5 / bin:$ PATH

I use PHP 5.6.30 and I update into 7.20 but every time I open new terminal tab I've to switch version by using

export PATH=/usr/local/php5/bin:$PATH

Is theier any way to use version 7 withour using this command line ?

write the env var to profile:

vi /etc/profile
export PATH=/usr/local/php7/bin:$PATH

### then
php run.php

or

start script with php7:

/usr/local/php7/bin/php7 run.php

近期文章

  • 有没有办法在不更改.htaccess的情况下删除Laravel中的index.php
  • 追加数据-slb-group =“slb”
  • 将零件请求复制到模型
  • laravel 5.5中的白色屏幕
  • RewriteRule阻止编码
  • PHP - simplexml_load_string重命名索引
  • cakephp-3.4 immutable http equest api API
  • 如何在PHP中阻止所有CloudFlare IP
  • 子查询成为Magento中Mysql查询中的列
  • 从php重定向后无法运行<Script>
  • 会话闪存数据无法在ajax中运行
  • 当我遍历数据库表时,Foreach返回空
  • 连接到2个php页面的链接[重复]
  • MySQL中的WHERE子句用于选择所有
  • 时间选择器禁用使用PHP返回的字符串
  • 根据下拉选择自动显示数据
  • if(xmlhttp.readyState == 4 && xmlhttp.status == 200)这个条件不起作用
  • 未捕获的错误:使用$ this
  • PHP MySQL更好的返回查询结果的策略
  • 如何将两列值相乘并将其写入另一列?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华