D
D
Delicate Ragout2019-09-10 17:24:27
PHP
Delicate Ragout, 2019-09-10 17:24:27

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

1 answer(s)
A
Alexander Aksentiev, 2019-09-10
@NejnoeRagu

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 question

Ask a Question

731 491 924 answers to any question