Answer the question
In order to leave comments, you need to log in
php5.6-cli running php from console?
Hello,
Debian 9 Server
PHP - 5.6
Need to run php script from console
php /var/www/somescript.php - just throws script contents into console
Googled about php-cli, it's already installed, judging by apt-get install php5.6 -cli
php5.6-cli /var/www/somescript.php
or
php5-cli /var/www/somescript.php
Not commands
So how can you run a script from the console?
Answer the question
In order to leave comments, you need to log in
In the script, you use short_open_tag<?
instead of the full tags of a healthy person<?php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question