html - PHP Script mkdir "No error, but no directory" -
i learning , messing around html , php on personal website. need create "new directory" using php.
i using, http://dummycode.com/projects/projectform/form.html in order try , make happen. running php script not creating new directory under /projects/projectform/dir
here code 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 find issue because every time says "error creating directory!" php not throwing errors.
is there simple missing, or being stupid?
thanks, henry harris
have tried using relative path rather url?
Comments
Post a Comment