Home >php教程 >php手册 >PHP & WEB

PHP & WEB

WBOY
WBOYOriginal
2016-06-06 20:00:301215browse

1、PHP获取磁盘空间函数:disk_free_space,ex: $df = disk_free_space(/) 2、用javascript实现文件下载功能时不要用window.location.href.由于IE的安全级别限制会出现种种异常情况(有时对话框无法弹出,有时返回页面有问题),最好用windown.open(文件名)

 1、PHP获取磁盘空间函数:disk_free_space,ex: $df = disk_free_space("/")

 

2、用javascript实现文件下载功能时不要用window.location.href.由于IE的安全级别限制会出现种种异常情况(有时对话框无法弹出,有时返回页面有问题),最好用windown.open("文件名")

 

3、消除特定的复选框

      len = document.form1.elements.length

      for  (i = 0; i 

      {

              if (document.form1.elements[i] == document.form1.elements["self_label_check"])

              {

                        continue;

              }

       }

 

4、PHP打印版本信息

         echo phpinfo ?>

 

5、HTML屏蔽代码

         

 

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