aaa - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of aaa.php

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>Arifcan Ekmekci</title>                 <!--SİTE BAŞLIĞINIZ-->
  6.  
  7. <style type="text/css">
  8. /* Eric Myer's Global Reset http://meyerweb.com/eric/tools/css/reset/index.html v1.0 | 20080212 */
  9. html, body, div, span, applet, object, iframe,
  10. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  11. a, abbr, acronym, address, big, cite, code,
  12. del, dfn, em, font, img, ins, kbd, q, s, samp,
  13. small, strike, strong, sub, sup, tt, var,
  14. b, u, i, center,
  15. dl, dt, dd, ol, ul, li,
  16. fieldset, form, label, legend,
  17. table, caption, tbody, tfoot, thead, tr, th, td {
  18.         margin: 0;
  19.         padding: 0;
  20.         border: 0;
  21.         outline: 0;
  22.         font-size: 100%;
  23.         vertical-align: baseline;
  24.         background: transparent;
  25. }
  26.  
  27. #true-random-integer-generator {
  28.         font-family: verdana, sans;
  29.         font-size: 35pt;
  30.         background: #FFFFFF;
  31.         padding: 5px;
  32.         margin: 0px;
  33.         width: 1000px;
  34.         color: #979797;
  35.        
  36.                 border: 1px solid #ff8b8d;}
  37.  
  38. #true-random-integer-generator-title {
  39.         text-align: center;
  40.         padding: 1px;
  41.         display: block;
  42.         background: #ff8b8d;
  43.         color: #000000;
  44.         margin: 100px;
  45.         margin-bottom: 10px;
  46. }
  47.  
  48.  
  49. #true-random-integer-generator-min-span {
  50.         display: block;
  51.         margin-bottom: 5px;
  52. }
  53.  
  54. #true-random-integer-generator-min-span label {
  55.         color: #000000;
  56. }
  57.  
  58. #true-random-integer-generator-min-span input {
  59.         width: 90px;
  60.         height: 40px;
  61.         margin-left: 25px;
  62. }
  63.  
  64. #true-random-integer-generator-max-span {
  65.         display: block;
  66.         margin-bottom: 5px;
  67. }
  68.  
  69. #true-random-integer-generator-max-span label {
  70.         color: #000000;
  71. }
  72.  
  73. #true-random-integer-generator-max-span input {
  74.         width: 120px;
  75.         height: 40px;
  76.         margin-left: 25px;
  77. }
  78.  
  79. #true-random-integer-generator-button {
  80.         color: #224059;
  81.             background-color: #b5c9e2;
  82.             border-top: 10px #cce3ff solid;
  83.             border-left: 10px #cce3ff solid;
  84.             border-bottom: 10px #31557f solid;
  85.             border-right: 10px #31557f solid;
  86.             font:bold 12px Arial, Helvetica, sans-serif;
  87. }
  88.  
  89. #true-random-integer-generator-result {
  90.         display: block;
  91.         padding: 2px;
  92.         margin-bottom: 50px;
  93.         color: #000000;
  94.         background:  #ff8b8d;
  95.         font-size: 15pt;
  96. }
  97.  
  98. #true-random-integer-generator-credits {
  99.         display: block;
  100.         font-size: 15pt;
  101.         text-align: center;
  102.         padding: 5px;
  103. }
  104.  
  105. #true-random-integer-generator-credits a {
  106.         color: #ff8b8d;
  107. }
  108.  
  109. #true-random-integer-generator-credits a:hover {
  110.         color: #ff8b8d;
  111. }
  112. </style>
  113.  
  114. <script type="text/javascript">
  115.     if ("https:" == document.location.protocol) {
  116.       document.write(unescape("%3Cscript src='https://www.google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  117.     } else {
  118.       document.write(unescape("%3Cscript src='http://www.google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  119.     }
  120.   </script>
  121.  <font size="8"> <script type="text/javascript">
  122.     var rdoIframeTracker = _gat._getTracker("UA-6153345-1");
  123.     rdoIframeTracker._setDomainName("none");
  124.     rdoIframeTracker._setAllowLinker(true);
  125.   <button onclick="sayiUret();">Birini Sec</button> </font>
  126.    <script>
  127.     function sayiUret() {
  128.       document.getElementById("sayi").innerHTML = randomInt(1, 331);
  129.     }
  130.  
  131.     function randomInt(min, max) {
  132.       return Math.floor(Math.random() * (max - min + 1)) + min;
  133.     }
  134.   </script>
  135.   
  136.  
  137. <script language="javascript" type="text/javascript" src="iframe.js"></script>
  138.  
  139. </head>
  140.  
  141. <body>
  142.  
  143. <center><div id="true-random-integer-generator">
  144.         <span id="true-random-integer-generator-title">True Random Number Generator</span>
  145.         <span id="true-random-integer-generator-min-span">
  146.                 <label for="true-random-integer-generator-min">Min:</label>
  147.                 <input type="number" name="true-random-integer-generator-min" id="true-random-integer-generator-min" maxlength="9" value="1" onkeypress="return integerJsInputControl(event);" />
  148.         </span>
  149.         <span id="true-random-integer-generator-max-span">
  150.                 <label for="true-random-integer-generator-max">Max:</label>
  151.                 <input type="number" name="true-random-integer-generator-max" id="true-random-integer-generator-max" maxlength="9" value="1000" onkeypress="return integerJsInputControl(event);" />
  152.         </span>
  153.         <span id="true-random-integer-generator-max-button-span">
  154.   <button onclick="sayiUret();">Birini Sec</button>
  155.         </span>
  156.   <center><div id="sonuc"> Result; <span id="sayi"></span></div></center>
  157.         <span id="true-random-integer-generator-result"></span>
  158. </div></center>
  159.  
  160. </body>
  161. </html>
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.         <span id="true-random-integer-generator-credits">Tüm Hakları Saklıdır <a href="https://www.instagram.com/arifcanekmekci" target="_blank">ArifcanEkmekci</a></span>
  169.  
  170.  
  171.  
  172.  
  173. <!DOCTYPE html>
  174. <html lang="tr">
  175.  
  176. <head>
  177.   <meta charset="UTF-8">
  178.   <title>ArifcanEkmekci Çekiliş</title>
  179. </head>
  180.  
  181. <body>
  182.   <script>
  183.     function sayiUret() {
  184.       document.getElementById("sayi").innerHTML = randomInt(1, 1);             <!--HANGİ SAYIYA ÇIKARMAK İSTİYORSANIZ BU ŞEKİLDE YAZIN ÖRNEGİN 1 İÇİN 1, 1 GİBİ-->
  185.     }
  186.  
  187.     function randomInt(min, max) {
  188.       return Math.floor(Math.random() * (max - min + 1)) + min;
  189.     }
  190.   </script>
  191. </body>
  192.  
  193. </html>
  194.  
  195.  
  196.  
  197. <!-- arifcanekmekci.com/toplist - sayac kodu -->
  198. <script type="text/javascript" src="http://arifcanekmekci.com/toplist/counter.php"></script>
  199. <!-- arifcanekmekci.com/toplist - sayac kodu -->
File Description
  • aaa
  • PHP Code
  • 13 Apr-2022
  • 5.37 Kb
You can Share it: