aaa
<html>
<head><title>mkfildir.html</title></head>
<body>
<form method="post" enctype="multipart/form-data"
action="mkfildir.php">
dir or File(Remote):<BR><BR>
filename / Mode : <input type="text" name="filename"> / <input
type="text" name="filemode"><BR>
dirname / Mode : <input type="text" name="dirname"> / <input
type="text" name="dirmode"><BR>
<input type="submit" value="送信">
</form>
</body>
</html>
<html>
<head><title>mkfildir.php</title></head>
<body>
<p> make fil and dir </p>
<?php
$caldir = "./";
$filename = $_POST['filename'];
$filemode = $_POST['filemode'];
$dirname = $_POST['dirname'];
$dirmode = $_POST['dirmode'];
$f01 = $caldir.$filename;
$f02 = $filemode;
$f03 = $caldir.$dirname;
$f04 = $dirmode;
$cmd01 = "touch \"$f02\"";
print("cmd01 : <b> $cmd01 </b><BR>");
$cmd02 = "chmod \"$02\" \"$f01\"";
print("cmd02 : <b> $cmd02 </b><BR>");
$cmd03 = "mkdir \"$f03\"";
print("cmd03 : <b> $cmd03 </b><BR>");
$cmd04 = "chmod \"$04\" \"$f03\"";
print("cmd04 : <b> $cmd04 </b><BR>");
$cmd05 = "ls -al \"$f01\"";
print("cmd05 : <b> $cmd05 </b><BR>");
$cmd06 = "ls -al \"$f03\"";
print("cmd06 : <b> $cmd06 </b><BR>");
//void passthru ( string $command [, int &$return_var ] )
if (system("$cmd01" ) == FALSE){
print("$cmd01 failed<BR>\n");
}
else {
print("<b> $cmd01 </b> success.<BR>\n");
}
/*
if (system("$cmd01" ) == FALSE){
print("$cmd01 failed<BR>\n");
}
else {
print("<b> $cmd01 </b> success.<BR>\n");
}
*/
}
?>
</body>
</html>
aaa