3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php session_start(); include("config.php"); mysql_query("SET NAMES 'utf8'"); mysql_query("SET CHARACTER SET utf8"); mysql_query("SET COLLATION_CONNECTION = 'utf8_bin'"); $query = mysql_query("select * from settings"); while($print = mysql_fetch_array($query)){ $mail = $print['email']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="<?php echo $print['description']; ?>" /> <meta name="keywords" content="<?php echo $print['keywords']; ?>" /> <meta name="author" content="Php Scriptlerim, www.phpscriptlerim.com" /> <title><?php echo $print['title']; ?></title> <link rel="stylesheet" media="screen,projection" type="text/css" href="css/reset.css" /> <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="css/main-msie.css" /><![endif]--> <link rel="stylesheet" media="print" type="text/css" href="css/print.css" /> <link rel="stylesheet" media="screen,projection" type="text/css" href="color/<?php echo $print['color']; ?>/css/style.css" /> <link rel="stylesheet" media="screen,projection" type="text/css" href="color/<?php echo $print['color']; ?>/css/main.css" /> </head> <body> <div id="main"> <div id="header"> <h1 id="logo"><a href="index<?php echo $print['seolink']; ?>"><img src="<?php echo $print['logo']; ?>" alt="" /></a></h1> <hr class="noscreen" /> <div id="nav" style="font-size:20pt;"> <img src="images/Telephone-icon.png" alt="Telefon" align="left" /> &nbsp; <?php echo $print['telefon']; ?><br><br> </div> </div> <div id="tray"> <ul> <li id="tray-active"><a href="index<?php echo $print['seolink']; ?>">Anasayfa</a></li> <?php $ppp = mysql_query("select * from pages where durum='0' order by sira desc"); while($nop = mysql_fetch_array($ppp)){ if($print['seolink']==".php"){ ?> <li><a href="pages.php?url=<?php echo $nop['sefurl']; ?>"><?php echo $nop['title']; ?></a></li> <?php }elseif($print['seolink']==".html"){ ?> <li><a href="sayfa-<?php echo $nop['sefurl']; ?>.html"><?php echo $nop['title']; ?></a></li><?php } } ?> <li><a href="siparisver<?php echo $print['seolink']; ?>">Sipariş Ver</a></li> <li><a href="odemebildirimi<?php echo $print['seolink']; ?>">Ödeme Bildirimi</a></li> <li><a href="blog<?php echo $print['seolink']; ?>">Blog</a></li> <li><a href="iletisim<?php echo $print['seolink']; ?>">İletişim</a></li> </ul> <div id="search" class="box"> <a href="<?php echo $print['facebook']; ?>" target="_blank"><img src="images/1364326420_facebook_02.png" alt="Facebook" title="Facebook" /></a> <a href="<?php echo $print['twitter']; ?>" target="_blank"><img src="images/1364326424_twitter_02.png" alt="Twitter" title="Twitter" /></a> </div> <hr class="noscreen" /> </div> <div id="col-top"></div> <div id="col" class="box"> <?php $aaa = mysql_query("select * from bloks where id='1'"); while($bbb = mysql_fetch_array($aaa)){ ?> <div id="col-browser"><img src="<?php echo $bbb['picture']; ?>" width="255" height="177" alt="" /></div> <div id="col-text"> <h2><?php echo $bbb['title']; ?></h2> <?php echo $bbb['content']; ?> <p id="btns" align="right"> <a href="yorumlar<?php echo $print['seolink']; ?>" class="buton yesil">Yorumlar</a> &nbsp;&nbsp;&nbsp;&nbsp; <a href="siparisver<?php echo $print['seolink']; ?>" class="buton kirmizi">Sipariş Ver</a> </p> </div> <?php } ?> </div> <div id="col-bottom"></div> <hr class="noscreen" /> <div id="cols3-top"></div> <div id="cols3" class="box"> <div class="col"> <?php $axa = mysql_query("select * from bloks where id='2'"); while($bxb = mysql_fetch_array($axa)){ ?> <h3><?php echo $bxb['title']; ?></h3> <p class="nom t-center"><img src="<?php echo $bxb['picture']; ?>" alt="" /></p> <div class="col-text"> <?php echo $bxb['content']; ?> </div> <div class="col-more"><a href="siparisver<?php echo $print['seolink']; ?>" class="buton gri">Satın Al</a></div> <?php } ?> </div> <hr class="noscreen" /> <div class="col"> <?php $aya = mysql_query("select * from bloks where id='3'"); while($byb = mysql_fetch_array($aya)){ ?> <h3><?php echo $byb['title']; ?></h3> <p class="nom t-center"><img src="<?php echo $byb['picture']; ?>" alt="" /></p> <div class="col-text"> <?php echo $byb['content']; ?> </div> <div class="col-more"><a href="siparisver<?php echo $print['seolink']; ?>" class="buton gri">Satın Al</a></div> <?php } ?> </div> <hr class="noscreen" /> <div class="col last"> <?php $ata = mysql_query("select * from bloks where id='4'"); while($btb = mysql_fetch_array($ata)){ ?> <h3><?php echo $btb['title']; ?></h3> <p class="nom t-center"><img src="<?php echo $btb['picture']; ?>" alt="" /></p> <div class="col-text"> <?php echo $btb['content']; ?> </div> <div class="col-more"><a href="siparisver<?php echo $print['seolink']; ?>" class="buton gri">Satın Al</a></div> <?php } ?> </div> <hr class="noscreen" /> </div> <div id="cols3-bottom"></div> <div id="cols2-top"></div> <div id="cols2" class="box"> <div id="col-left"> <div class="title"> <span class="f-right"><a href="#" class="ico-rss">RSS</a></span> <h4>Blog</h4> </div> <ul class="ul-list nomb"> <?php $blog = mysql_query("select * from blog order by id desc"); while($yxz = mysql_fetch_array($blog)){ $yorum_za=strtotime($yxz['tarih']); $ay=array('','Ocak','Şubat','Mart','Nisan','Mayıs','Haziran','Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'); $yorum_z=date('d',$yorum_za)." ".$ay[date("n",$yorum_za)]." ".date('Y', $yorum_za); if($print['seolink']==".php"){ ?> <li><span class="f-right"><a href="single.php?url=<?php echo $yxz['sefurl']; ?>" class="ico-comment"><?php echo $yxz['yorum']; ?> Yorum</a></span> <span class="date"><?php echo $yorum_z; ?></span> <a href="single.php?url=<?php echo $yxz['sefurl']; ?>" class="article"><?php echo $yxz['title']; ?></a></li> <?php }elseif($print['seolink']==".html"){ ?> <li><span class="f-right"><a href="blog-<?php echo $yxz['sefurl']; ?>.html" class="ico-comment"><?php echo $yxz['yorum']; ?> Yorum</a></span> <span class="date"><?php echo $yorum_z; ?></span> <a href="blog-<?php echo $yxz['sefurl']; ?>.html" class="article"><?php echo $yxz['title']; ?></a></li> <?php } } ?> </ul> </div> <hr class="noscreen" /> <div id="col-right"> <h4><span>Kullanıcı Yorumları</span></h4> <div class="box"> <ul class="ul-01"> <?php $qqq = mysql_query("select * from yorumlar where onay='1' order by rand() limit 0,1"); while($rrr = mysql_fetch_array($qqq)){ ?> <li><a href="yorumlar<?php echo $print['seolink']; ?>"> <?php $detay = $rrr['yorum']; $uzunluk = strlen($detay); $limit = 100; if ($uzunluk > $limit) { $detay = substr($detay,0,$limit) . "..."; } echo $detay; ?> </a></li> <?php } ?> </ul> </div> </div> </div> <div id="cols2-bottom"></div> <div align="center"><img src="images/dip.png" alt="" /></div> <div id="footer"> <p align="center"> <?php $pxp = mysql_query("select * from pages where durum='1' order by sira desc"); while($nxp = mysql_fetch_array($pxp)){ if($print['seolink']==".php"){ ?> <a href="pages.php?url=<?php echo $nxp['sefurl']; ?>"><?php echo $nxp['title']; ?></a> | <?php }elseif($print['seolink']==".html"){ ?> <a href="sayfa-<?php echo $nxp['sefurl']; ?>.html"><?php echo $nxp['title']; ?></a> | <?php } } ?> </p><br><br> <p class="f-right">Powered by : <a href="http://www.phpscriptlerim.com" target="_blank">Php Scriptlerim</a> &reg;</p> <p>&copy; <?php echo date('Y'); ?> <strong><?php echo $print['title']; ?></strong>. Tüm hakları saklıdır.</p> </div> </div> <?php include("plugin/bizsizicalling.php"); ?> </body> </html> <?php } ?>
Output for 7.0.0 - 7.2.0
Warning: include(config.php): failed to open stream: No such file or directory in /in/Q6b4l on line 3 Warning: include(): Failed opening 'config.php' for inclusion (include_path='.:') in /in/Q6b4l on line 3 Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/Q6b4l:4 Stack trace: #0 {main} thrown in /in/Q6b4l on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Warning: include(config.php): failed to open stream: No such file or directory in /in/Q6b4l on line 3 Warning: include(): Failed opening 'config.php' for inclusion (include_path='.:') in /in/Q6b4l on line 3 Fatal error: Call to undefined function mysql_query() in /in/Q6b4l on line 4
Process exited with code 255.