Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
function.php
Package: Generateur_v13.rar [view]
Upload User: feiyaoda
Upload Date: 2016-11-21
Package Size: 9556k
Code Size: 1k
Category:
WEB Mail
Development Platform:
PHP
- <?
- function cpDir($from_path, $to_path)
- {
- $result = @mkdir($to_path, 0777);
- if(!$result) trigger_error("erreur lors de la cr閍tion d'un dossier ($to_path)", E_USER_ERROR);
- $this_path = getcwd();
- if (is_dir($from_path))
- {
- $result = $result and chdir($from_path);
- if(!$result) trigger_error("chemin inexistant ($from_path)", E_USER_ERROR);
- $handle=opendir('.');
- $result = $result and ($handle!=null);
- if(!$result) trigger_error("chemin inexistant ou non autorise ($from_path)", E_USER_ERROR);
- while (($file = readdir($handle))!==false) if (($file != ".") && ($file != "..")) if (is_dir($file))
- {
- $result = $result and cpDir($from_path.$file."/", $to_path.$file."/");
- if(!$result) trigger_error("erreur de copie ($from_path.$file vers $to_path.$file)", E_USER_ERROR);
- $result = $result and chdir($from_path);
- if(!$result) trigger_error("chemin inexistant ou non autorise ($from_path)", E_USER_ERROR);
- }
- elseif (is_file($file)) $result = $result and copy($from_path.$file, $to_path.$file);
- closedir($handle);
- }
- return $result;
- }
- ?>