mkdir()
Posted: Wed Jul 17, 2002 4:37 am
hi,
i found a script that makes directories via html (script url: http://www.evilwalrus.com/viewcode.php?codeEx=1):
so when i want to use this script i get notice about ERROR (Warning: mkdir() failed (Permission denied) in /mnt/host-users/xexexexe/nothing.php3 on line 11).. What should i do?
P.S. If u know some free php hosting, please post reply to this topic with hosting URL.
THNX!
Code: Select all
<?php
// START MAIN MAKEDIR FUNCTION
if ($makedir == "MakeDir") {
$content = "$direct";
$dirmake = mkdir("$content", 0777);
// DISPLAY LINK TO DIRECTORY AFTER MAKING IT
PRINT "<center>
";
PRINT "<a href="$content">CLICK HERE TO VIEW YOUR NEW DIRECTORY</a>
";
PRINT "</center>
";
}
// MAIN FORM TO INPUT INFORMATION
PRINT "<form action="$PHP_SELF?action=direct">
";
PRINT "<INPUT TYPE="text" NAME="direct" SIZE="15">
";
PRINT "<br>
";
PRINT "<INPUT TYPE="submit" NAME="makedir" VALUE="MakeDir">
";
PRINT "</FORM>
";
?>THNX!