JStream::copy
Copy a file from src to dest
Signature
public function copy(string
$src,
[string
$dest = null,
[resource
$context = null,
[boolean
$use_prefix = true,
[boolean
$relative = false]]]] )
Parameters
-
$src
- The file path to copy from.
-
$dest
- The file path to copy to.
-
$context
- A valid context resource (optional) created with stream_context_create.
-
$use_prefix
- Controls the use of a prefix (optional).
-
$relative
- Determines if the filename given is relative. Relative paths do not have JPATH_ROOT stripped.
Returns
- mixed