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

在eclipse上将PHP echo重定向到外部文件

I'm testing some php scripts on linux...

I know if i run php script.php > file.txt the result is going to be printed to file.txt, but i'm using eclipse pdt to run the scripts

how can i achieve the same behavion with eclipse?

This can be configured in the launch/run configuration:

  1. Run > Run Configurations...
  2. In the tab Common check Output File and enter file.txt

近期文章

  • 如何使用foreach()插入HTML而不使用echo
  • PHP登录表单不起作用,我该怎么办才能修复它?
  • 如何从codeigniter控制器类调用coinbase api方法? [重复]
  • 复杂的PHP错误:尝试转义数组
  • 我可以使用较少的isset行来循环遍历数组键吗?
  • Laravel雄辩的一对多关系
  • 带参数的Laravel路由导致404
  • 成功登录后重定向不起作用
  • 用户尝试更新时如何更新图像?
  • 返回数组中相同id的多个值
  • SELECT JOIN MYSQL
  • 使用友好URL更改.htaccess时无法获取变量
  • 特定页面的表格提交(Concrete5 8.3.2)
  • 在控制器中创建数组并传递给外部函数
  • 检查数据库表中是否存在令牌 - 使用laravel
  • 使用WooCommerce德国市场变量产品显示独特的价格
  • 如何从html5输出标签检索数据到PHP变量?
  • 一个函数中的多个SQL查询
  • 具有子项目的雄辩请求计数
  • 如何在ubuntu 17.10中安装php5.5

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华