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

WBOY
Release: 2016-06-13 13:35:01
Original
793 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:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template