Home > Backend Development > PHP Tutorial > PHP在linux上的服务器除了用PHP的那个service承载外还有其他方法吗?解决方法

PHP在linux上的服务器除了用PHP的那个service承载外还有其他方法吗?解决方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:35:01
Original
843 people have browsed it

PHP在linux上的服务器除了用PHP的那个service承载外还有其他方法吗?
我记得好像有个#!/usr/share/php 的一个东西。但是具体如何操作不是很清楚。

------解决方案--------------------
#!/path 这是说明该文件被哪个解释器执行
除了挂在web服务器上,还可用cli方式运行 php -f filename.php
像你说的

PHP code
#!/usr/share/php
<?php echo "hello,world"; <div class="clear">
                 
              
              
        
            
Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template