Home  >  Article  >  Backend Development  >  配备editplus直接运行php程序

配备editplus直接运行php程序

WBOY
WBOYOriginal
2016-06-13 13:06:101327browse

配置editplus直接运行php程序

配置editplus,使其直接运行php程序。

?

1、English Edition:

Tools -> Preferences -> Tools -> User Tools


Menu text :php
Command : D:\\php\\php.exe
Argument : $(FileName)
Initial Directory : $(FileDir)

?

2、中文版:

工具 -> 配置用户工具 -> 工具 -> 用户工具

菜单文本 : PHP

命令:D:\\php\\php.exe? 注:自己安装PHP目录的PHP执行文件

参数:$(FileName)

起始目录:$(FileDir)

?

附:可以选择捕捉输出,这样运行结果显示在你的右下方。方便调试!

?

应用:

这样一来,解析json就方便多了,例如:

<?php var_dump(json_decode('{"error":"1","errmsg":"\u9519\u8bef\u7684\u6765\u8def"}'));

?快捷键:ctrl+1, 输出如下:

---------- PHP ----------
object(stdClass)#1 (2) {
? ["error"]=>
? string(1) "1"
? ["errmsg"]=>
? string(15) "错误的来路"
}
输出完成 (耗时 2 秒) - 正常终止

?

?

参考文章:http://blog.163.com/dollare@126/blog/static/3661149020109792744643/

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn