.1 | <html><style>article,a,p{background:#000;color:#f86;font-size:1.2em;margin:1em;padding:0.5em}span{color:#0f0}</style><?php
.2 | $dirname= "gfg";
.3 | if($_GET['make']==1){
.4 | mkdir($dirname) or die("1");
.5 | file_put_contents($dirname."/files.php",file_get_contents("files.php"));}
.6 | elseif($_GET['make']==2){
.7 | unlink($dirname."/files.php");
.8 | rmdir($dirname) or die("2");}
.9 | ?><article>
10 | <a href="gfg/files.php">Test</a><span>|</span>
11 | <a href="directory.php?make=1">Create</a><span>|</span><a href="directory.php?make=2">Remove</a>
12 | <br><br><p>This script tests creation and deletion of directories, putting a files.php page in for file upload</p>
13 | </article>
14 | <iframe src="source.php?f=directory.php" style="width:990px;height:300px"></iframe>
15 | </html>