Category : mkdir

I’m interested in which code I should use in order for the user to have a profile, pictures and so on in their folder after registration. I put the code in but just make an empty folder. register.php <?php require(‘db.php’); if (isset($_REQUEST[‘username’])) { $username = stripslashes($_REQUEST[‘username’]); $username = mysqli_real_escape_string($con, $username); $email = stripslashes($_REQUEST[’email’]); $email = ..

Read more

In my Symfony function I am creating a folder, and inside this folder another folder: $client = HttpClient::create(); $createFolder = $client->request(‘MKCOL’, $path.$foldername, [ ‘auth_basic’ => [$user, $authKey], ]); $createImageFolder = $client->request(‘MKCOL’, $path.$foldername/images’, [ ‘auth_basic’ => [$user, $authKey], ]); It works well, but somtimes the first folder is not created fast enough, and the image folder ..

Read more