一些PHP函数
程序员文章站
2024-02-01 13:06:34
...
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')