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

一些PHP函数

WBOY
Release: 2016-06-23 14:31:20
Original
895 people have browsed it

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')


 

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