[文章作者:张宴 本文版本: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) | 阅读(67761)
Lyle Aiken
2012-7-14 10:38
If you're thinking about making a dramatic hair extensions uk change in your appearance don't forget about the most stylish and alternative looks. Modern Pre Bonded Hair Extensions styling allows you to juggle with textures and length using the latest styling formulas as well as tools.
lirourou77 Email Homepage
2012-9-5 14:12
Lvjing Hai, the flexibility to delay the basic pension policy, if implemented, will do the elderly occupied by young people to work. In this regard, countries <b>discount designer clothes<b>      
should be to stimulate economic growth, new jobs, to alleviate this problem.

His analysis, private enterprises and foreign enterprises, joint ventures, to attract a large number of employment staff in order to enable flexibility to delay in receiving the basic pension policies can be implemented smoothly, it seems, or should the broad-brush approach to enforce appropriate.

Chu Fu-ling: each year involving tens of millions <b>wholesale designer handbags<b>      
of people

Chu Fu Ling told reporters in the country to implement the flexibility to delay the basic pension policies each year may involve tens of millions of people, and thus lead to the problem of young people unable to enter these positions. This massive amount of posts can not be vacated, may be <b>designer handbags for less<b>      
difficult through the newly developed position, such as to resolve all of a sudden.
baozang
2012-9-22 13:23
Lamo - Like Sebago, Louis Vuitton Canada  there are only about 40 styles of Lamo Footwear. Most of their footwear uses a suede leather traditional in True Religion Jeans  moccasins, though only about 1/3 of the footwear collection is a traditional moccasin look. True Religion Brand Jeans The rest of the collection is slippers and UGG styled boots.Louis Vuitton Artsy The traditional moccasins do have a soft rubber sole making them great deck True Religion Sale shoes as well, however. Expect to pay between $50 and $60 for Lamo moccasins.  Invicta watches have been here since 1837. They were made by Raphael Picard. Invicta watches got its name from a Latin word. The meaning of Invicta in Louis Vuitton Monogram Vernis Alma BB Amarante Latin is "Invincible". Earlier these watches were not so popular but recently with its new men's collection this watch brand has gained a lot of popularity. Watches for many are a style statement and so they prefer to own the best piece. Invicta watches are popular as they are like a style statement.
HAWERE
2013-3-5 13:46
买轴承就到:www.jkzhoucheng.cn
HAWER
2013-3-7 14:36
买轴承就到:www.jkzhoucheng.cn
杭州东方魅力是杭州最好的夜场KTV
[2013-3-7 22:11]
来源:卢凸灰牛
内容:杭州东方魅力招聘模特www.mote188.com
杭州魅力金座招聘模特网站:www.haolun168.com
杭州东方魅力公司网站:www.dongfangmeili.net
杭州东方魅力是杭州最好的夜场KTV
[2013-3-10 21:57]
来源:曾吾邵互
内容:杭州东方魅力招聘模特www.mote188.com
杭州魅力金座招聘模特网站:www.haolun168.com
杭州东方魅力公司网站:www.dongfangmeili.net
杭州夜场招聘/杭州最好的夜场是哪里www.dongfangmeli.com
[2013-3-13 20:16]
来源:韦弦纪拉
内容:杭州最好的夜场是www.dongfangmeli.com杭州东方魅力
杭州夜场招聘首选www.dongfangmeli.com
杭州哪家KTV生意最好哪个夜场KTV最好
[2013-3-14 20:53]
来源:郑亟忙羊
内容:杭州东方魅力招聘模特www.mote188.com
杭州魅力金座招聘模特网站:www.haolun168.com
杭州东方魅力公司网站:www.dongfangmeili.net

杭州东方魅力是杭州最好的夜场KTV
[2013-3-17 03:07]
来源:邹柔匠矛
内容:杭州东方魅力招聘模特www.mote188.com
杭州魅力金座招聘模特网站:www.haolun168.com
杭州东方魅力公司网站:www.dongfangmeili.net
杭州夜场招聘/杭州最好的夜场是哪里www.dongfangmeli.com
[2013-4-28 07:13]
来源:秦林午民
内容:杭州最好的夜场是www.dongfangmeli.com杭州东方魅力
杭州夜场招聘首选www.dongfangmeli.com
云聊网www.518face.com
[2013-5-21 23:41]
来源:韦飞纪到
内容:云聊网www.518face.com
海阔天空娱乐会所15026982229全国本地上门兼职按摩
[2013-5-22 13:42]
来源:丁怕侵朱
内容:海阔天空娱乐会所15026982229全国本地上门兼职按摩
欢迎光临海海阔天空俏佳人时尚娱乐会所
我们是全国连锁,为您就近提供上门兼职按摩服务
第一步:服务预约电话:15026982229【杨姐】
第二步:按照客人提出的要求安排技师;请说出您的详细地址
第三步: 技师半小时左右到达您的住所,请耐心等待
第四步:技师到达与客人当面沟通,如客人不满意,支付技师往返车费,请求更换技师或服务结束
第五步:客人对技师满意后,技师开始服务
第六步:服务结束,客人结帐

技师图片请进网站查看: Http://WWW.LVCAI.ORG
海阔天空娱乐会所15026982229全国本地上门兼职按摩
[2013-5-25 14:58]
来源:姚忍不妆
内容:海阔天空娱乐会所15026982229全国本地上门兼职按摩
欢迎光临海海阔天空俏佳人时尚娱乐会所
我们是全国连锁,为您就近提供上门兼职按摩服务
第一步:服务预约电话:15026982229【杨姐】
第二步:按照客人提出的要求安排技师;请说出您的详细地址
第三步: 技师半小时左右到达您的住所,请耐心等待
第四步:技师到达与客人当面沟通,如客人不满意,支付技师往返车费,请求更换技师或服务结束
第五步:客人对技师满意后,技师开始服务
第六步:服务结束,客人结帐

技师图片请进网站查看: Http://WWW.LVCAI.ORG
杭州东方魅力是杭州最好的夜场KTV
[2013-5-27 07:35]
来源:吴勉石肚
内容:杭州东方魅力招聘模特www.mote188.com
杭州魅力金座招聘模特网站:www.haolun168.com
杭州东方魅力公司网站:www.dongfangmeili.net
odhk1lrs Email Homepage
2013-5-27 22:45
above the crimson glow burning Tianding rapid flashing,fake oakleys,"     Mu Lingshan petite body is ejected out of the hands of fate lid off the black light directly in front of Liu Xiangxuan fiercely angry group of people shot away. below the lake,foakleys, anger python killer! ', naturally.
   became almost instant immeasurable mirror outside the focus of everyone's attention, she is stopped immediately looked worried Lin move: "If they fail," Left in the forest after the Denon Yaoshuai said suddenly. want to build it is too time consuming several days. filled with eerie feeling. a pair of black eyes, this element force by virtue of their support over the sea on their way.
海阔天空娱乐会所15026982229全国本地上门兼职按摩
[2013-5-29 08:35]
来源:胡岱收柏
内容:海阔天空娱乐会所15026982229全国本地上门兼职按摩
欢迎光临海海阔天空俏佳人时尚娱乐会所
我们是全国连锁,为您就近提供上门兼职按摩服务
第一步:服务预约电话:15026982229【杨姐】
第二步:按照客人提出的要求安排技师;请说出您的详细地址
第三步: 技师半小时左右到达您的住所,请耐心等待
第四步:技师到达与客人当面沟通,如客人不满意,支付技师往返车费,请求更换技师或服务结束
第五步:客人对技师满意后,技师开始服务
第六步:服务结束,客人结帐

技师图片请进网站查看: Http://WWW.LVCAI.ORG
http://donfangmeili.qzone.qq.com
[2013-6-4 06:54]
来源:郭昌江姣
内容:http://donfangmeili.qzone.qq.com 杭州东方魅力官方博客http://donfangmeili.qzone.qq.com杭州东方魅力博客
杭州东方魅力是杭州最好的夜场KTV
[2013-6-6 07:40]
来源:余纣也盲
内容:杭州东方魅力招聘模特www.mote188.com
杭州魅力金座招聘模特网站:www.haolun168.com
杭州东方魅力公司网站:www.dongfangmeili.net
http://donfangmeili.qzone.qq.com
[2013-6-9 07:07]
来源:汤水百亟
内容:http://donfangmeili.qzone.qq.com 杭州东方魅力官方博客http://donfangmeili.qzone.qq.com杭州东方魅力博客
分页: 2/4 第一页 上页 1 2 3 4 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]