create a directory using php
// Create folder if not exist
$folderName = 'images/gallery';
$config['upload_path'] = $folderName;
if(!is_dir($folderName))
{
mkdir($folderName, 0777);
}<?php
// Create a directory recursively (make sure to sanitize if taken from input as always!)
mkdir("/path/to/my/dir", 0777, true);
Also in PHP:
- array_reverse in php example
- How to add days to $Date in PHP when click on button
- create new laravel project composer
- Multiple image upload with CodeIgniter
- base64 to image
- deactivate woocommerce breadcrumbs
- array in array php foreach
- create directory by php
- create laravel migration
- Create image data URIs (base64) using PHP Raw
- drupal 8 entity_view
- find ip address with php
- create a laravel app
- compare string length php
- check object key exists php
- convert php time()
- destroy php variable
- catch new exception php
- 'laravel collective"Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
- Str::slug laravel 8
- delete route method in laravel
- error_reporting php off
- error reporting panvil.works
- Message could not be sent.Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting