View previous topic :: View next topic |
Author |
Message |
kodos02 n00b
Joined: 20 Mar 2005 Posts: 12 Location: Luxembourg
|
Posted: Thu Jan 05, 2006 4:25 pm Post subject: PHP shell interpreter |
|
|
Hi,
does somebody know how i can install a PHP shell interpreter, so that I can run php scripts from the shell?
thx
Christian |
|
Back to top |
|
|
chrbecke Guru
Joined: 12 Jul 2004 Posts: 598 Location: Berlin - Germany
|
Posted: Thu Jan 05, 2006 5:08 pm Post subject: |
|
|
Code: | emerge dev-lang/php | did the trick for me...
I can run php scripts either with or, if I add the proper shebang as first line (before the opening "<?php") in my script and make the file executable I can execute it directly, e.g. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20484
|
Posted: Thu Jan 05, 2006 7:04 pm Post subject: |
|
|
Moved from Other Things Gentoo _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
kodos02 n00b
Joined: 20 Mar 2005 Posts: 12 Location: Luxembourg
|
Posted: Thu Jan 05, 2006 9:26 pm Post subject: |
|
|
Hi,
i have installed dev-lang/php but i have no php command, do I need a special use flag?
thx Christian |
|
Back to top |
|
|
FLYLM n00b
Joined: 25 Mar 2004 Posts: 62 Location: France
|
Posted: Thu Jan 05, 2006 9:42 pm Post subject: |
|
|
You need the flag "cli" |
|
Back to top |
|
|
chrbecke Guru
Joined: 12 Jul 2004 Posts: 598 Location: Berlin - Germany
|
Posted: Thu Jan 05, 2006 9:44 pm Post subject: |
|
|
chrbecke wrote: | Code: | emerge dev-lang/php | did the trick for me... |
Sorry, didn't recognise there are ebuilds for php in two different categories. I don't have dev-lang/php installed, but dev-php/php.
I think dev-lang/php has to be emerged with "cli" USE flag to get a command line php interpreter. I never used it myself, though, so I can't tell for sure...
Sorry for the confusion. |
|
Back to top |
|
|
kodos02 n00b
Joined: 20 Mar 2005 Posts: 12 Location: Luxembourg
|
Posted: Thu Jan 05, 2006 10:04 pm Post subject: |
|
|
Thank you two
I'm reemergeing php right now
Christian |
|
Back to top |
|
|
FLYLM n00b
Joined: 25 Mar 2004 Posts: 62 Location: France
|
|
Back to top |
|
|
alexlm78 Veteran
Joined: 08 Dec 2003 Posts: 1265 Location: Guatemala,Guatemala
|
Posted: Thu Jan 05, 2006 10:34 pm Post subject: |
|
|
And try to program in phpgtk, is really great. _________________ "This is a different kind of world, you need a different kind of software"
Linux User# 315201
100% Chapin hecho en Guatemala |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|