Home  >  Article  >  Backend Development  >  一些PHP函数

一些PHP函数

WBOY
WBOYOriginal
2016-06-23 14:31:20871browse

read()) { if(($entry!=".")&&($entry!="..")){ if(is_dir($source."/".$entry)){ if($child) xCopy($source."/".$entry,$destination."/".$entry,$child); } else{ copy($source."/".$entry,$destination."/".$entry); } } } return 1; } ///获取与当前PHP同一层的另外一个文件的全链接 $self_url = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']; $last_slash_pos = strrpos($self_url, '/'); $cur_dir_url = substr($self_url, 0, $last_slash_pos); $otherjumpurl = $cur_dir_url + "XXXX.php";

 

//设置网页编码为utf8 @header('Content-Type:text/html;charset=utf-8')


 

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
Previous article:php 永久session(转)Next article:PHP错误等级