[文章作者:张宴 本文版本:v1.0 最后修改:2009.01.13 转载请注明原文链接:http://blog.zyan.cc/post/392/]

  PHPSH 是 Facebook 团队开发的一款交互式 PHP Shell,可以方便地进行PHP命令行测试。

  网址:http://www.phpsh.org/

  安装方法:
cd /opt/
wget http://www.phpsh.org/phpsh-latest.tgz
tar zxvf phpsh-latest.tgz
cd phpsh/
sed -i "s#php -q#/usr/local/webserver/php/bin/php -q#g" phpsh
chmod +x phpsh
ln -s /opt/phpsh/phpsh /bin/phpsh

  注意:上述安装方法中的“/usr/local/webserver/php/bin/php”为您的PHP可执行文件路径。


  使用示例:
[root@localhost ~]# phpsh
I can't find a tags file for you.  To enable tab completion in phpsh,
go to the root directory of your php code and run 'ctags -R',
(or whatever the analagous command is with your version of ctags,)
then run phpsh from that directory or a subdirectory of that directory.

Commandline: /usr/local/webserver/php/bin/php -q /opt/phpsh/phpsh.php
phpsh (c)2006 by Charlie Cheever and Dan Corson and Facebook, Inc.
type 'h' or 'help' to see instructions & features

New Feature: You can use the -c option to turn off coloring
php> = 3 + 4
7
php> = md5("ZhangYan")
28f91f3a4b62ce57b7a533e742e8aae1
php> echo date("Y-m-d H:i:s")
2009-01-13 15:28:19
php> $var = "blog.zyan.cc"
php> echo $var
blog.zyan.cc
php> $array = array(array(1,2,3), array("a" => "b", "c" => "d", "e" => "f"), 'g', 'h')
php> = $array
Array
(
    [0] => Array
        (
            [0] => 1
            [1] => 2
            [2] => 3
        )

    [1] => Array
        (
            [a] => b
            [c] => d
            [e] => f
        )

    [2] => g
    [3] => h
)

php> q

[root@localhost ~]# phpsh



Tags: , , ,



技术大类 » PHP/JS/Shell | 评论(45) | 引用(19) | 阅读(67759)
http://donfangmeili.qzone.qq.com
[2013-6-15 08:02]
来源:马冠些旺
内容:http://donfangmeili.qzone.qq.com 杭州东方魅力官方博客http://donfangmeili.qzone.qq.com杭州东方魅力博客
厦门最好的花场ktv是www.nyjzktv.com
[2013-6-18 07:49]
来源:邹好比全
内容:厦门最好的夜场是www.nyjzktv.com
厦门夜场招聘首选www.nyjzktv.com
厦门最好的ktv是www.nyjzktv.com
杭州最好的夜总会杭州首席公馆招聘模特
[2013-6-21 09:03]
来源:魏侠宅床
内容:杭州最好的夜场是杭州首席公馆www.shouxigongguan.com

杭州最好的ktv是哪儿?是杭州首席公馆www.shouxigongguan.com

杭州夜场招聘首选杭州首席公馆www.shouxigongguan.com

杭州最好的夜总会是杭州首席公馆www.shouxigongguan.com

杭州首席公馆官方网站欢迎你 联系电话:18058181133 QQ:511158899
杭州夜场招聘/杭州最好的夜场是哪里www.dongfangmeli.com
[2013-6-25 07:38]
来源:董合系石
内容:杭州最好的夜场是www.dongfangmeli.com杭州东方魅力
杭州夜场招聘首选www.dongfangmeli.com
杭州最好的夜场是杭州东方魅力www.dongfangmeiliclub.com

杭州最好的ktv是哪儿?是杭州东方魅力www.dongfangmeiliclub.com

杭州夜场招聘首选杭州东方魅力www.dongfangmeiliclub.com

杭州最好的夜总会是杭州东方魅力www.dongfangmeiliclub.com

杭州东方魅力官方网站欢迎你 联系电话:13666653761 微信:dongfangmeili
杭州最好的KTV-杭州东方魅力-杭州夜场招聘首选-杭州最好的夜场KTV
[2013-6-30 03:43]
来源:周肖甲宙
内容:杭州东方魅力招聘模特www.mote188.com
杭州最好的夜场是杭州东方魅力www.dongfangmeiliclub.com

杭州最好的ktv是哪儿?是杭州东方魅力www.dongfangmeiliclub.com

杭州夜场招聘首选杭州东方魅力www.dongfangmeiliclub.com

杭州最好的夜总会是杭州东方魅力www.dongfangmeiliclub.com

杭州东方魅力官方网站欢迎你 联系电话:13666653761 微信:dongfangmeili
cnm
2013-8-4 23:06
puke
磨延城 Email Homepage
2013-10-21 20:56
磨途歌学习了
Steven Email Homepage
2015-3-19 02:58
Thank you for this post Weight Loss Tea
Yejefol
2020-4-17 14:50
Thanks for sharing this code with us.Tech "write for us"
seo Email
2022-1-3 20:02
I like your post. It is good to see you verbalize from the heart and clarity on this important subject can be easily observed...  Watch Weather Channel Live
seoo Email
2022-1-14 04:40
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon.  출장안마
shz Email
2022-8-1 21:02
I will really appreciate the writer's choice for choosing this excellent article appropriate to my matter.Here is deep description about the article matter which helped me more.  Digital real estate business
shzz Email
2022-8-1 21:04
Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.  Digital real estate business
shz Email
2022-8-1 21:07
Very nice blog and articles. I am realy very happy to visit your blog. Now I am found which I actually want. I check your blog everyday and try to learn something from your blog. Thank you and waiting for your new post.  Digital real estate business
shzz Email
2022-8-1 21:11
All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks  Digital real estate business
shz Email
2022-8-1 21:11
Well we really like to visit this site, many useful information we can get here.  Digital real estate business
shz Email
2022-8-1 21:15
Thumbs up guys your doing a really good job.  Digital real estate business
shz Email
2022-8-1 21:19
I have read your excellent post. This is a great job. I have enjoyed reading your post first time. I want to say thanks for this post. Thank you...  Digital real estate business
shzz Email
2022-8-1 21:23
A debt of gratitude is in order for giving late reports with respect to the worry, I anticipate read more.  Digital real estate business
shz Email
2022-8-1 21:31
Nice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best.  Digital real estate business
分页: 3/4 第一页 上页 1 2 3 4 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]