PHP 8.5.0 Alpha 1 available for testing

Voting

: min(nine, seven)?
(Example: nine)

The Note You're Voting On

absorbentshoulderman at gmail dot com
12 years ago
A nice simple trick if you need to make sure the folder exists first:

<?php

$srcfile
='C:\File\Whatever\Path\Joe.txt';
$dstfile='G:\Shared\Reports\Joe.txt';
mkdir(dirname($dstfile), 0777, true);
copy($srcfile, $dstfile);

?>

That simple.

<< Back to user notes page

To Top