Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
mkdir('./' . $username . '/', 0777);
is_dir -- Tells whether the filename is a directory
// Define directory
$dir = "./{$username}/";
// make directory
if (!(is_dir($dir))) {
mkdir($dir, 0777);
}
1
<?php
mkdir("/home/xxx/mainwebsite_html ./mkdirtesst/", 0700);
?>
2
<?php
mkdir("[URL unfurl="true"]http://"[/URL] . $_SERVER['HTTP_HOST'] ./{$username}/", 0700);
?>
3
<?php
$dir = "[URL unfurl="true"]http://"[/URL] . $_SERVER['HTTP_HOST'] ./{$username}/";
// make directory
if (!(is_dir($dir))) {
mkdir($dir, 0777);
chdir('./');
}
?>
$r = "r";
$foo = "ba" . $r;
// Define directory
$dir = "./users/{$username}/";
// make directory
if (!(is_dir($dir))) {
if (mkdir($dir, 0755)) {
echo "The directory <strong>{$dir}</strong> was successfully created!";
}
else {
echo "Error: The directory <strong>{$dir}</strong> could not be created!";
}
}