dougong2306 2011-02-07 12:19
浏览 67
已采纳

交互式PHP有类似于〜/ .irbrc文件的东西吗?

I wonder if the

  $ php -a

have something similar to ruby's ~/.irbrc file.

basically I want to require 'bootstrap.php'; automatically when I start php -a

  • 写回答

2条回答 默认 最新

  • douqiao5314 2011-11-10 09:58
    关注

    For future references:

    I solved this by using http://phpsh.org/

    and using an alias of

    alias myphpsh='phpsh bootstrap.php'

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?