PHP da shell

4 risposte [Ultimo messaggio]
Ritratto di massj
massj
(Junior)
Offline
Junior
Iscritto: 30/11/2006
Messaggi: 8

Ciao a tutti,
ho bisogno di utilizzare php come comando da shell, tuttavia ho scoperto che non c'è l'eseguibile, e non riesco a trovare un eventuale pacchetto da installare o indicazioni su cosa configurare per eseguirlo da shell.

Ho installato php5 su una mandriva 2007, come modulo di apache php5 funziona benissimo.

Qualche suggerimento?

grazie mille!

Ritratto di Moreno
Moreno
(Guru)
Offline
Guru
Iscritto: 24/09/2004
Messaggi: 16862

Ciao

Spero di avere capito quello che cerchi

<br />Name        : php-cli                      Relocations: (not relocatable)<br />Version     : 5.2.1                             Vendor: Mandriva<br />Release     : 4mdv2007.1                    Build Date: ven 09 mar 2007 18:53:27 CET<br />Install Date: (not installed)               Build Host: n3.mandriva.com<br />Group       : Development/Other             Source RPM: php-5.2.1-4mdv2007.1.src.rpm<br />Size        : 27219                            License: PHP License<br />Signature   : DSA/SHA1, ven 09 mar 2007 19:51:01 CET, Key ID dd684d7a26752624<br />Packager    : Oden Eriksson &lt;oeriksson@mandriva.com&gt;<br />URL         : http://www.php.net<br />Summary     : PHP5 CLI interface<br />Description :<br />PHP5 is an HTML-embeddable scripting language. PHP5 offers built-in<br />database integration for several commercial and non-commercial<br />database management systems, so writing a database-enabled script<br />with PHP5 is fairly simple.  The most common use of PHP5 coding is<br />probably as a replacement for CGI scripts.<br /><br />This package contains a command-line (CLI) version of php. You must<br />also install libphp5_common. If you need apache module support, you<br />also need to install the apache-mod_php package.<br /><br />This version of php has the suhosin patch 0.9.6.2 applied. Please<br />report bugs here: http://qa.mandriva.com/ so that the official maintainer of<br />this Mandriva package can help you. More information regarding the<br />suhosin patch 0.9.6.2 here: http://www.suhosin.org/<br /><br />%%% Files<br />/usr/bin/php<br />/usr/share/doc/php-cli-5.2.1<br />/usr/share/doc/php-cli-5.2.1/CREDITS.cli<br />/usr/share/doc/php-cli-5.2.1/README.cli<br />/usr/share/doc/php-cli-5.2.1/TODO.cli<br />/usr/share/man/man1/php.1.bz2<br />

Ciao Ciao Moreno

Addio, e grazie per tutto il pesce.
Avatar by moonlight-dream.

Ritratto di maurelio79
maurelio79
(Guru)
Offline
Guru
Iscritto: 19/05/2006
Messaggi: 2074

Scusate se mi intrometto...ma se installo tale pacchetto, posso lanciare degli script in php tramite shell?

Debian Squeeze+Mandriva2009 on Asus X59SLseries
http://www.mylinuxexperience.org/

Ritratto di massj
massj
(Junior)
Offline
Junior
Iscritto: 30/11/2006
Messaggi: 8

Quote:

maurelio79 ha scritto:
Scusate se mi intrometto...ma se installo tale pacchetto, posso lanciare degli script in php tramite shell?

esattamente 8-)

Ritratto di massj
massj
(Junior)
Offline
Junior
Iscritto: 30/11/2006
Messaggi: 8

Ciao Moreno,
sei sempre una garanzia!

Era proprio questo, non riuscivo a individuare il pacchetto di php sa shell, ero quasi sicuro che ci fosse!!
Installato con urmpi e tutto ok.

Grazie mille!

Siccome mi serve pe run ambiente Symphony se a qualcuno interessano i framework php, tornerò sicuramente a scriverne.

PS: pensavo che mi arrivasse un alert via email che c'era una risposta e invece non mi è arrivato, forse c'è qualche problema?