3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <?php echo "<center>"; // Bismillahirrahmanirrahim include ("her.php"); $useradi=$_POST['userx']; $sifresi=$_POST['pwdx']; if ($useradi==NULL) { echo "Giri&#351; Yap&#305;n&#305;z<br>"; echo $msg; exit(); } elseif ($sifresi==NULL) { echo "Giris Yapiniz<br>"; echo $msg; exit(); } $dizi=file("guven.txt"); $saydir=count($dizi); for ($n=0; $n<$saydir; $n++) { $dizi[$n]=explode("-", $dizi[$n]); } $dizigenel=file("genel.txt"); for ($row=0; $row<$saydir; $row++) { if ($dizi[$row][0]==$useradi && $dizi[$row][1]==$sifresi) { // ÜYELIK SISTEMI echo "<title>$useradi</title><table border=0><tr><td><center><b>ÜYELIK SISTEMI</b> <br>Sayin <b>$useradi</b> Sitemize Hosgeldiniz."; // DIGER ÜYELER echo "</td></tr><tr><td align=center>"; echo "<b>DIGER ÜYELER</b>(<b>$saydir</b>)<br>"; $dizigenel=array_reverse($dizigenel); for($s=0; $s<$saydir; $s++) { echo "$dizigenel[$s]<br>"; } echo "</center></td></tr></table>"; // MESAJ GÖNDER FORM echo "<table border=0><tr><td><center> <form name=giris action=ana.php method=post><b>MESAJ GÖNDER</b> <input type=hidden name=userx value=$useradi> <input type=hidden name=pwdx value=$sifresi><table border=0><tr><td> Kime:</td><td><input type=text name=kime></td></tr><tr><td> Baslik:</td><td><input name=baslik type=text maxlength=25></td></tr><tr><td> Mesaj:</td><td><textarea name=mesaj></textarea></td></tr><tr><td> </td><td align=right><input type=submit value=Gönder></td></tr><table> </form>"; // MESAJ GÖNDER ISLEM $kime=$_POST[kime] ; $baslik=$_POST[baslik] ; $mesaj=$_POST[mesaj] ; $dizi=file("kon.txt"); $alicikontrol=("-$kime-"); if (@strstr($dizi[0], $alicikontrol)) { $kimden=$useradi; if ($kime==$useradi) {$kimden="kendim";} $fgiden= fopen("$kime.txt", "a"); $myazilacak= "<table border=0><tr><td><b>Kimden:</b>$kimden</td><td align=right><b>Baslik:</b>$baslik</td></tr><tr><td width=280 colspan=2><b>Mesaj:</b> $mesaj</b><hr></td></tr></table>\n"; fwrite($fgiden, $myazilacak); } elseif (($kime==NULL) and ($baslik==NULL) and ($mesaj==NULL)) { $file = fopen($useradi.".txt", "w") ; fwrite($file, "74" ); fclose($file); } else { echo "<font color=red>[Böyle bir kullanici yok]</font><br> "; } // GELEN KUTUSU fopen("$useradi.txt", "a"); $gelen=file("$useradi.txt"); $gelen=array_reverse($gelen); $onunsayisi=count($gelen); echo "<b>GELEN MESAJLAR</b> (<b>$onunsayisi</b>)<br>"; for ($gelensayisi=0; $gelensayisi<count($gelen); $gelensayisi++) { echo "$gelen[$gelensayisi]<br>"; } echo "</td></tr></table>"; echo "$msg</center>"; } } ?> <? // Submit Dener 1 $useradi=$_POST['userx']; $sifresi=$_POST['pwdx']; if($_POST['Submit']){ $open = fopen("$useradi.txt","w+"); $text = $_POST['update']; fwrite($open, $text); fclose($open); echo "File updated.<br />"; echo "File:<br />"; $file = file("$useradi.txt"); foreach($file as $text) { echo $text."<br />"; } }else{ $file = file("$useradi.txt"); echo "<form action=\"target.php\" method=\"post\">" ; echo "<form action=target.php method=\"post\"><input name=\"hedefer\" maxlength=\"50\" size=\"20\">"; echo "<input type=\"hidden\" name=bosuc value=\"$filename\">"; echo "<input type=\"hidden\" name=useradi value=\"$useradi\">"; echo "<input type=\"hidden\" name=pwdx value=\"$sifresi\">"; echo "<input type=\"hidden\" name=filename value=\"$downloadlink\">"; echo "<input type=\"hidden\" name=content value=\"\">"; echo "<input type=\"submit\" value=\"Send the link!\"><br /><br /></form>"; } ?> <table border=0><tr><td><center> <form name=giris action="<?=$_SERVER['PHP_SELF'];?>" method=post><b>Temizle</b> <input type=hidden name=userx value=$useradi> <input type=hidden name=pwdx value=$sifresi><table border=0><tr><td> </td><td><input type=hidden name=submitciniz value=true></td></tr><tr><td> </td><td><input name=copustasi type=text maxlength=25></td></tr><tr><td> </td><td><textarea name=mesaj></textarea></td></tr><tr><td> </td><td align=right><input type=submit value=Gönder></td></tr><table></form> <? $content = "2222" $mesajibosla = $_POST['copustasi']; if ($mesajibosla==NULL){ $file = fopen($useradi.".txt", "w") ; fwrite($file, $content ); fclose($file); } ?> <? echo "$content" ; ?>
Output for 5.3.0 - 5.4.32
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: include(her.php): failed to open stream: No such file or directory in /in/A9WZn on line 5 Warning: include(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 5.1.0 - 5.2.17
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: include(her.php): failed to open stream: No such file or directory in /in/A9WZn on line 5 Warning: include(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 5.0.4 - 5.0.5
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: main(her.php): failed to open stream: No such file or directory in /in/A9WZn on line 5 Warning: main(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 4.3.2 - 5.0.3
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: main(her.php): failed to open stream: No such file or directory in /in/A9WZn on line 5 Warning: main(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13
Output for 4.3.0 - 4.3.1
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: main(her.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/A9WZn on line 5 Warning: main() [http://www.php.net/function.main]: Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Notice: Undefined index: userx in /in/A9WZn on line 7 Notice: Undefined index: pwdx in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Notice: Undefined variable: msg in /in/A9WZn on line 13