Home >Backend Development >PHP Tutorial > php删除文件的操作 怎么判断 参数是否为 win/unix系统目录

php删除文件的操作 怎么判断 参数是否为 win/unix系统目录

WBOY
WBOYOriginal
2016-06-13 13:48:06763browse

php删除文件的操作 如何判断 参数是否为 win/unix系统目录
如果是win/linux系统目录就不往下读,怎么实现啊

------解决方案--------------------
你知道如何判断 php 运行在哪个操作系统中么?
------解决方案--------------------

PHP code

<?php echo PHP_OS;//服务端os
echo $_SERVER['HTTP_USER_AGENT'];//客户端os
?>
<br><font color="#e78608">------解决方案--------------------</font><br>php_uname()函数: <div class="clear">
                 
              
              
        
            </div>
Statement:
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