PHP-Fusion Development

copy_file()

Copy a file from any source to any destination.

Versions: 9

copy_file( string $source, string $destination ) : mixed

Parameters

$source (string) (Required) Copy file from URL

$destination (string) (Required) Destination folder.

Return Values

(mixed)

Examples

require_once INCLUDES.'photo_functions_include.php';
‚Äč
copy_file(IMAGES.'php-fusion-logo.png', IMAGES.'avatars/');