I am currently learning and messing around with some HTML and PHP on my personal website. I need to create a "New Directory" using PHP.
I am currently using, http://dummycode.com/projects/projectform/form.html in order to try and make this happen. It is running the PHP script but it is not creating a new directory under /projects/projectform/dir
Here is the code for the form.php file:
<?php
$result = mkdir("http://dummycode.com/projects/projectform/dir", 0700);
if ($result == 1) {
echo "Success creating directory!";
} else {
echo "Error creating directory!";
}
?>
I cannot seem to find the issue because every time it says "Error creating directory!" but the PHP is not throwing any errors.
Is there something simple I am missing, or am I just being stupid?
Thanks, Henry Harris