I am trying to create a directory that is inside of a folder called upload. Here is my current simple code that I tried to get this done:
<?php
$thisdir = getcwd();
$new_dir = '145';
if(mkdir("/upload/" . $newdir, 0777))
{
echo "Directory has been created successfully...";
}
else
{
echo "Failed to create directory...";
}
?>
There must be some simple fix that I am missing. Can you place it? Thanks.