3v4l.org

run code in 300+ PHP versions simultaneously
<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 git.master, git.master_jit, rfc.property-hooks
<meta http-equiv=content-type content="text/html;charset=windows-1254"> <center> Warning: include(): open_basedir restriction in effect. File(her.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/A9WZn on line 5 Warning: include(her.php): Failed to open stream: Operation not permitted in /in/A9WZn on line 5 Warning: include(): Failed opening 'her.php' for inclusion (include_path='.:') in /in/A9WZn on line 5 Warning: Undefined array key "userx" in /in/A9WZn on line 7 Warning: Undefined array key "pwdx" in /in/A9WZn on line 8 Giri&#351; Yap&#305;n&#305;z<br> Warning: Undefined variable $msg in /in/A9WZn on line 13

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.24 ms | 402 KiB | 8 Q