CopyPastor

Detecting plagiarism made easy.

Score: 0.813325822353363; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-03-10
by Sujeet Kumar

Original Post

Original - Posted on 2011-06-08
by Maher



            
Present in both answers; Present only in the new answer; Present only in the old answer;

<?php $dirname = "small"; $filename = "upload/".$dirname."/"; if (!is_dir($filename )) { mkdir("upload/" . $dirname, 0777, true); echo "The directory $dirname was successfully created."; exit; } else { echo "The directory $dirname exists."; } ?>
$dirname = $_POST["search"]; $filename = "/folder/" . $dirname . "/"; if (!file_exists($filename)) { mkdir("folder/" . $dirname, 0777); echo "The directory $dirname was successfully created."; exit; } else { echo "The directory $dirname exists."; }

        
Present in both answers; Present only in the new answer; Present only in the old answer;