Re: Command line PHP
| From: | Joshua Kehn | Date: | Fri, 07 Jan 2011 18:57:21 +0000 |
| Subject: | Re: Command line PHP | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310562@lists.php.net to get a copy of this message | ||
On Jan 7, 2011, at 1:53 PM, Ashley Sheridan wrote:
> There's no real reason why you shouldn't use PHP for cli apps, it has a lot of
> features specifically intended for it even. I've found it to be fast enough for my needs,
> it's familiar, and I don't need to compile an app every time I make a small code change.
>
> Yes PHP is primarily a web-based language, but there's no reason it can't be used
> other places too. In fact, I've even got PHP installed on my Android phone, although I've
> yet to find a practical use for that!
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
I don't see a reason other then I find other languages more nimble for small scripts. If you
are using lots of shared PHP code then of course it would make sense to leverage that existing code
rather then re-implement it. The OP was asking (I assume) about a standalone application built from
scratch.
I would kill for a PHP interpreter (+ Haskell and Python) on iOS. Unfortunately I haven't found
one.
Regards,
-Josh
____________________________________
Joshua Kehn | Josh.Kehn@gmail.com
http://joshuakehn.com