gpt4 book ai didi

ubuntu - 无法使用 'external tools' 功能从 gedit 执行 PHP

转载 作者:行者123 更新时间:2023-12-04 19:21:59 25 4
gpt4 key购买 nike

在我的 gedit 中,我设置了一个像这样的外部工具:-

姓名:Run PHP
编辑:-

#!/bin/sh
php

保存: Nothing
输入: Current document
输出: Display in bottom pane
适用性: All documents
但它没有在底部 Pane 中输出任何内容。它只是显示了这一点: -

运行工具:运行PHP
完毕。

它不显示实际输出,但如果代码中有任何语法或运行时错误,该错误将在底部 Pane 中以红色显示。问题仅在于脚本的实际输出。

任何人都可以帮忙吗?我在下面附上了我的 gedit 设置窗口的屏幕截图。

(我使用的是 Ubuntu 12.10 顺便说一句)。谢谢。

enter image description here

最佳答案

问题是,该输出没有新行...在 PHP 命令之后附加 echo ""或其他内容(或将 PHP_EOL 回显到 PHP 代码)

#!/bin/sh
php
echo ""

关于ubuntu - 无法使用 'external tools' 功能从 gedit 执行 PHP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13968568/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com