简体   繁体   English

不使用PHP的Ubuntu上的Symfony命令行

[英]Symfony command line on Ubuntu without using PHP

Why if we type a Symfony command line on Ubuntu without using PHP, we don't have an error ? 为什么如果我们在U​​buntu上不使用PHP键入Symfony命令行却没有错误呢?

For example 例如

php app/console cache:clear

is the same thing than : 与以下内容相同:

app/console cache:clear

We don't have an error. 我们没有错误。

app/console cache:clear
[OK] Cache for the "dev" environment (debug=true) was successfully cleared. 

Because php env defined in app/console 因为php env在app / console中定义

#!/usr/bin/env php

Also, app/console should have permissions for execute 此外,应用程序/控制台应具有执行权限

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从ubuntu的命令行执行php脚本 - execute php script from command line on ubuntu 在 PHP 中获取 Composer 包的版本,而不使用命令行 - Get version of Composer package(s) in PHP, without using the command line 使用curl不带命令行,但使用php作为post方法 - using curl without command line, but with php for a post method 使用Symfony Process解析命令行输出 - Parse command line output using Symfony Process PHP sendmail 在 Ubuntu 命令行中工作,但不是来自 php 文件 - PHP sendmail works in Ubuntu command line, but not from a php file 在Symfony中的PHP和从命令行运行的php正在加载不同的驱动程序 - Php in Symfony and php run from the command line are loading different drivers 是否可以在没有命令行的情况下在服务器上运行symfony 4应用程序? - Is it possible to run symfony 4 application on server without command line? 使用适用于SQL Server的PHP的Microsoft驱动程序在Ubuntu 16.04上的PHP 7.2中连接到SQL Server,可在浏览器中工作,但在命令行中失败 - Connect to SQL Server in PHP 7.2 on Ubuntu 16.04, using Microsoft Drivers for PHP for SQL Server, works in browser but fails in command-line 用PHP来执行命令行 - Using Php to execute command line laravel 5 .. ubuntu ..命令行 - laravel 5 .. ubuntu .. command line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM