Wednesday, February 19, 2020

PHP goodies

I

To create folder just try this:

Create a folder if it doesn't already exist



if (!file_exists('path/to/directory')) {
    mkdir('path/to/directory', 0777, true);
}


Note that 0777 is already the default mode for directories and may still be modified by the current umask.

To copy file from one folder to another:

How to copy a file from one directory to another using PHP?



You could use the copy() function :

// Will copy foo/test.php to bar/test.php
// overwritting it if necessary

copy('foo/test.php', 'bar/test.php');

Quoting a couple of relevant sentences from its manual page :

Makes a copy of the file source to dest.

If the destination file already exists, it will be overwritten.



II

http://www.absolutelinux.org/download.html


III

https://webgl2fundamentals.org/webgl/lessons/webgl-how-it-works.html

IV

https://www.rodsbooks.com/refind/

The rEFInd Boot Manager


No comments:

Post a Comment

Коментар: