Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 18756  / 2 Years ago, sat, october 1, 2022, 9:22:22

How to install PHP Compiler/Interpreter on ubuntu 11.04



I have latest version of PHP, but I want to learn PHP from terminal. Is there a PHP interpreter available that will run PHP programs inside terminal.



e.g. I want to run command like "phpc" or "phpi" or "php" to open up PHP REPL.



Thanks.


More From » php

 Answers
4

Just run



sudo apt-get install php5-cli


To run it in interactive mode:



php -a


Run a file:



php /path/to/file

[#40829] Saturday, October 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bblerest

Total Points: 240
Total Questions: 119
Total Answers: 113

Location: Wallis and Futuna
Member since Mon, May 18, 2020
4 Years ago
bblerest questions
Sun, Apr 16, 23, 13:50, 1 Year ago
Fri, Nov 4, 22, 06:21, 2 Years ago
Tue, Sep 27, 22, 12:22, 2 Years ago
;