Create a folder using PHP code
To create a folder on the server partition, use the PHP command: mkdir ();
In the example below, I will create a folder where your name will be the current system date.
<php $folder = date("Ymd");mkdir ($folder, 0755); ?>
The value "0755", will be allowed to read / write the new folder.
I remember:
For dedicated servers, you can use 777.
To host servers / cpanel, you should use the permission to 755.
Source:
http://br.php.net/manual/pt_BR/function.mkdir.php
Related Articles
Install ScriptCase PHP 7.0 on a XAMPP on Linux
Xampp Installation Using PHP 7.0 XAMPP It allows you to easily install Apache on your own computer, regardless of your operating system (Linux, Windows, MAC or Solaris). First you have to proceed to download XAMPP PHP ...
Install ScriptCase PHP 7.3 on a XAMPP in Linux
Xampp Installation Using PHP 7.3 XAMPP It allows you to easily install Apache on your own computer, regardless of your operating system (Linux, Windows, MAC or Solaris). First you have to proceed to download XAMPP PHP ...
Using the sc_confirm macro
In this article, see a practical example of using the sc_confirm macro. This macro can only be used on PHP buttons created in the toolbar of form and control applications, with the aim of confirming the action's excursion. See how to create a PHP ...
Installing PHP 7.0 - Mac
This article describes the PHP 7.0 and Apache 2.4 installation to ScriptCase use. Supported Operating Systems: Mac El Captain Sierra Necessary Files: SourceGuardian Loader: Click Here Setting up PHP Access the terminal (shell) and execute the command ...
Installing PHP 7.3 - macOS
This documentation will cover how to install PHP 7.3 and ScriptCase manually on macOS. Performing this type of installation is your responsible for configuring your entire environment as well as database extensions. Listed below are versions of macOS ...