3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php include("inc/config.inc.php"); $tidDato = date("dmYHis"); if (isset($_FILES['fileToUpload'])) { // $fileName = substr(md5($_FILES['fileToUpload']['name']), 0, 5); //$filNavn = "boede-" . $tidDato . "-" . $fileName . ".jpg"; move_uploaded_file($_FILES['fileToUpload']['tmp_name'], "uploads/" . $_FILES['fileToUpload']['name']); } if (isset($_FILES['fileToUpload2'])) { //$fileName2 = substr(md5($_FILES['fileToUpload2']['name']), 0, 5); //$filNavn2 = "boede-" . $tidDato . "-" . $fileName2 . ".jpg"; move_uploaded_file($_FILES['fileToUpload2']['tmp_name'], "uploads/" . $_FILES['fileToUpload2']['name']); } if (isset($_FILES['fileToUpload3'])) { //$fileName3 = substr(md5($_FILES['fileToUpload3']['name']), 0, 5); //$filNavn3 = "boede-" . $tidDato . "-" . $fileName3 . ".jpg"; move_uploaded_file($_FILES['fileToUpload3']['tmp_name'], "uploads/" . $_FILES['fileToUpload3']['name']); } if (isset($_FILES['fileToUpload4'])) { //$fileName4 = substr(md5($_FILES['fileToUpload4']['name']), 0, 5); //$filNavn4 = "boede-" . $tidDato . "-" . $fileName4 . ".jpg"; move_uploaded_file($_FILES['fileToUpload4']['tmp_name'], "uploads/" . $_FILES['fileToUpload4']['name']); } if (isset($_FILES['fileToUpload5'])) { //$fileName5 = substr(md5($_FILES['fileToUpload5']['name']), 0, 5); //$filNavn5 = "boede-" . $tidDato . "-" . $fileName5 . ".jpg"; move_uploaded_file($_FILES['fileToUpload5']['tmp_name'], "uploads/" . $_FILES['fileToUpload5']['name']); } if(isset($_GET["send"])){ $lobenr = $_POST["lobenr"]; $gade = $_POST["gade"]; $otype = $_POST["otype"]; $nummerplade = strtoupper($_POST["nummerplade"]); $tid = $_POST["tid"]; $fabrikat = $_POST["fabrikat"]; $nationalitet = $_POST["nationalitet"]; $bemaerkning = $_POST["bemaerkning"]; $dato1 = $_POST["dato"]; $dato = date("d-m-Y", strtotime($dato1)); $fileToUpload = $_FILES["fileToUpload"]["name"]; $fileToUpload2 = $_FILES["fileToUpload2"]["name"]; $fileToUpload3 = $_FILES["fileToUpload3"]["name"]; $fileToUpload4 = $_FILES["fileToUpload4"]["name"]; $fileToUpload5 = $_FILES["fileToUpload5"]["name"]; $hentmID = mysqli_query($mysql, "SELECT ID FROM brugere WHERE brugernavn='" . $_SESSION["brugernavn"] . "'"); $hmID = mysqli_fetch_array($hentmID); if($lobenr == NULL){ // Intet } else { mysqli_query($mysql, "INSERT INTO boder (nummerplade, adresse, tid, dato, billede, betalt, ot, mID, lobenr, fabrikat, nationalitet, bemaerkning, billede2, billede3, billede4, billede5) VALUES ('" . $nummerplade . "', '" . $gade . "', '" . $tid . "', '" . $dato . "', '" . $fileToUpload . "', '0', '" . $otype . "', '" . $hmID["ID"] . "', '" . $lobenr . "', '" . $fabrikat . "', '" . $nationalitet . "', '" . $bemaerkning . "', '" . $fileToUpload2 . "', '" . $fileToUpload3 . "', '" . $fileToUpload4 . "', '" . $fileToUpload5 . "')"); } } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> <link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="apple-touch-startup-image-640x1096.png"> <title>NemParkering</title> <link rel="stylesheet" href="css/framework7.css"> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="css/colors/blue.css"> <link type="text/css" rel="stylesheet" href="css/swipebox.css" /> <link type="text/css" rel="stylesheet" href="css/animations.css" /> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700,900' rel='stylesheet' type='text/css'> </head> <body id="mobile_wrap"> <script type="text/javascript"> function fileSelected() { var count = document.getElementById('fileToUpload').files.length; document.getElementById('details').innerHTML = ""; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; var fileSize = 0; if (file.size > 1024 * 1024) fileSize = (Math.round(file.size * 100 / (1024 * 1024)) / 100).toString() + 'MB'; else fileSize = (Math.round(file.size * 100 / 1024) / 100).toString() + 'KB'; document.getElementById('details').innerHTML += 'Name: ' + file.name + '<br>Size: ' + fileSize + '<br>Type: ' + file.type; document.getElementById('details').innerHTML += '<p>'; } } function uploadFile() { var fd = new FormData(); var count = document.getElementById('fileToUpload').files.length; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; fd.append('fileToUpload', file); } var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", uploadProgress, false); xhr.addEventListener("load", uploadComplete, false); xhr.addEventListener("error", uploadFailed, false); xhr.addEventListener("abort", uploadCanceled, false); xhr.open("POST", "upload.php"); xhr.send(fd); } function uploadProgress(evt) { if (evt.lengthComputable) { var percentComplete = Math.round(evt.loaded * 100 / evt.total); document.getElementById('progress').innerHTML = percentComplete.toString() + '%'; } else { document.getElementById('progress').innerHTML = 'unable to compute'; } } function uploadComplete(evt) { /* This event is raised when the server send back a response */ alert("Billede uploadet!"); } function uploadFailed(evt) { alert("Billedet kunne ikke uploades!"); } function uploadCanceled(evt) { alert("Bøden blev tilføjet!"); } function printt() { window.print(); } </script> <div class="pages"> <div data-page="projects" class="page no-toolbar no-navbar"> <div class="page-content"> <div class="navbarpages" onclick="location.href='index.php';"> <div class="nav_left_logo"><a href="index.php"><img src="images/logo.png" alt="" title="" /></a></div> <div class="nav_right_button"></div> </div> <div id="pages_maincontent"> <h2 class="page_title">Ny Bøde</h2> <div class="page_content"> <h2 id="Note"></h2> <div class="contactform"> <form class="cmxform" id="ContactForm" method="post" action="?send=1" enctype="multipart/form-data"> <?php $lDato = date("l jS \of F Y h:i:s"); $lDatoMD5 = md5($lDato); $lobenr_g = substr($lDatoMD5, 0, 8); $lobenr_g = strtoupper($lobenr_g); ?> <label>Løbe nr.:</label> <input type="text" name="lobenr" id="lobenr" value="<?php echo $lobenr_g; ?>" class="form_input" readonly /> <label>Gade:</label> <select name="gade" id="gade" class="form_input"> <?php $hentGader = mysqli_query($mysql, "SELECT * FROM gader"); while($hGader = mysqli_fetch_array($hentGader)){ ?> <option name="<?php echo $hGader["gadenavn"]; ?>" value="<?php echo $hGader["gadenavn"]; ?>"><?php echo $hGader["gadenavn"]; ?></option> <?php } ?> </select> <label>Overtrædelses Type:</label> <select name="otype" id="otype" class="form_input"> <?php $hentOType = mysqli_query($mysql, "SELECT * FROM ot"); while($hGader = mysqli_fetch_array($hentOType)){ ?> <option name="<?php echo $hGader["id"]; ?>" value="<?php echo $hGader["id"]; ?>"><?php echo $hGader["ot"]; ?></option> <?php } ?> </select> <label>Nummerplade:</label> <input type="text" name="nummerplade" id="nummerplade" value="" class="form_input required" /> <label>Fabrikat:</label> <input type="text" name="fabrikat" id="fabrikat" value="" class="form_input required" /> <label>Nationalitet:</label> <input type="text" name="nationalitet" id="nationalitet" value="" class="form_input required" /> <label>Tid:</label> <input type="time" name="tid" id="tid" value="<?php echo date("H:i"); ?>" readonly class="form_input" /> <label>Dato:</label> <input type="date" name="dato" id="dato" value="<?php echo date("Y-m-d"); ?>" readonly class="form_input" /> <label>Bemærkning:</label> <input type="text" name="bemaerkning" id="bemaerkning" value="" class="form_input required" /> <label>Billede:</label> <input type="file" name="fileToUpload" id="fileToUpload" onchange="fileSelected();" accept="image/*" capture="camera" class="form_input"> <label>Evt. Billede 2:</label> <input type="file" name="fileToUpload2" id="fileToUpload2" onchange="fileSelected();" accept="image/*" capture="camera" class="form_input"> <label>Evt. Billede 3:</label> <input type="file" name="fileToUpload3" id="fileToUpload3" onchange="fileSelected();" accept="image/*" capture="camera" class="form_input"> <label>Evt. Billede 4:</label> <input type="file" name="fileToUpload4" id="fileToUpload4" onchange="fileSelected();" accept="image/*" capture="camera" class="form_input"> <label>Evt. Billede 5:</label> <input type="file" name="fileToUpload5" id="fileToUpload5" onchange="fileSelected();" accept="image/*" capture="camera" class="form_input"> <input type="submit" name="submit" class="form_submit" id="submit" value="Send" onclick="uploadFile()" /> <label id="loader" style="display:none;"><img src="images/loader.gif" alt="Loading..." id="LoadingGraphic" /></label> </form> </div> <div class="clear"></div> </div> </div> </div> </div> </div> <script type="text/javascript" src="js/jquery-1.10.1.min.js"></script> <script type="text/javascript" src="js/framework7.js"></script> <script type="text/javascript" src="js/my-app.js"></script> <script type="text/javascript" src="js/jquery.swipebox.js"></script> <script type="text/javascript" src="js/jquery.fitvids.js"></script> <script type="text/javascript" src="js/email.js"></script> </body> </html>
Output for 7.0.0 - 7.0.29, 7.0.31 - 7.3.1
Warning: include(): open_basedir restriction in effect. File(inc/config.inc.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/o6NLu on line 2 Warning: include(inc/config.inc.php): failed to open stream: Operation not permitted in /in/o6NLu on line 2 Warning: include(): Failed opening 'inc/config.inc.php' for inclusion (include_path='.:') in /in/o6NLu on line 2 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> <link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="apple-touch-startup-image-640x1096.png"> <title>NemParkering</title> <link rel="stylesheet" href="css/framework7.css"> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="css/colors/blue.css"> <link type="text/css" rel="stylesheet" href="css/swipebox.css" /> <link type="text/css" rel="stylesheet" href="css/animations.css" /> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700,900' rel='stylesheet' type='text/css'> </head> <body id="mobile_wrap"> <script type="text/javascript"> function fileSelected() { var count = document.getElementById('fileToUpload').files.length; document.getElementById('details').innerHTML = ""; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; var fileSize = 0; if (file.size > 1024 * 1024) fileSize = (Math.round(file.size * 100 / (1024 * 1024)) / 100).toString() + 'MB'; else fileSize = (Math.round(file.size * 100 / 1024) / 100).toString() + 'KB'; document.getElementById('details').innerHTML += 'Name: ' + file.name + '<br>Size: ' + fileSize + '<br>Type: ' + file.type; document.getElementById('details').innerHTML += '<p>'; } } function uploadFile() { var fd = new FormData(); var count = document.getElementById('fileToUpload').files.length; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; fd.append('fileToUpload', file); } var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", uploadProgress, false); xhr.addEventListener("load", uploadComplete, false); xhr.addEventListener("error", uploadFailed, false); xhr.addEventListener("abort", uploadCanceled, false); xhr.open("POST", "upload.php"); xhr.send(fd); } function uploadProgress(evt) { if (evt.lengthComputable) { var percentComplete = Math.round(evt.loaded * 100 / evt.total); document.getElementById('progress').innerHTML = percentComplete.toString() + '%'; } else { document.getElementById('progress').innerHTML = 'unable to compute'; } } function uploadComplete(evt) { /* This event is raised when the server send back a response */ alert("Billede uploadet!"); } function uploadFailed(evt) { alert("Billedet kunne ikke uploades!"); } function uploadCanceled(evt) { alert("Bøden blev tilføjet!"); } function printt() { window.print(); } </script> <div class="pages"> <div data-page="projects" class="page no-toolbar no-navbar"> <div class="page-content"> <div class="navbarpages" onclick="location.href='index.php';"> <div class="nav_left_logo"><a href="index.php"><img src="images/logo.png" alt="" title="" /></a></div> <div class="nav_right_button"></div> </div> <div id="pages_maincontent"> <h2 class="page_title">Ny Bøde</h2> <div class="page_content"> <h2 id="Note"></h2> <div class="contactform"> <form class="cmxform" id="ContactForm" method="post" action="?send=1" enctype="multipart/form-data"> <label>Løbe nr.:</label> <input type="text" name="lobenr" id="lobenr" value="E4139B98" class="form_input" readonly /> <label>Gade:</label> <select name="gade" id="gade" class="form_input"> Fatal error: Uncaught Error: Call to undefined function mysqli_query() in /in/o6NLu:173 Stack trace: #0 {main} thrown in /in/o6NLu on line 173
Process exited with code 255.
Output for 7.0.30
Warning: include(): open_basedir restriction in effect. File(inc/config.inc.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/o6NLu on line 2 Warning: include(inc/config.inc.php): failed to open stream: Operation not permitted in /in/o6NLu on line 2 Warning: include(): Failed opening 'inc/config.inc.php' for inclusion (include_path='.:') in /in/o6NLu on line 2 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> <link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="apple-touch-startup-image-640x1096.png"> <title>NemParkering</title> <link rel="stylesheet" href="css/framework7.css"> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="css/colors/blue.css"> <link type="text/css" rel="stylesheet" href="css/swipebox.css" /> <link type="text/css" rel="stylesheet" href="css/animations.css" /> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700,900' rel='stylesheet' type='text/css'> </head> <body id="mobile_wrap"> <script type="text/javascript"> function fileSelected() { var count = document.getElementById('fileToUpload').files.length; document.getElementById('details').innerHTML = ""; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; var fileSize = 0; if (file.size > 1024 * 1024) fileSize = (Math.round(file.size * 100 / (1024 * 1024)) / 100).toString() + 'MB'; else fileSize = (Math.round(file.size * 100 / 1024) / 100).toString() + 'KB'; document.getElementById('details').innerHTML += 'Name: ' + file.name + '<br>Size: ' + fileSize + '<br>Type: ' + file.type; document.getElementById('details').innerHTML += '<p>'; } } function uploadFile() { var fd = new FormData(); var count = document.getElementById('fileToUpload').files.length; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; fd.append('fileToUpload', file); } var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", uploadProgress, false); xhr.addEventListener("load", uploadComplete, false); xhr.addEventListener("error", uploadFailed, false); xhr.addEventListener("abort", uploadCanceled, false); xhr.open("POST", "upload.php"); xhr.send(fd); } function uploadProgress(evt) { if (evt.lengthComputable) { var percentComplete = Math.round(evt.loaded * 100 / evt.total); document.getElementById('progress').innerHTML = percentComplete.toString() + '%'; } else { document.getElementById('progress').innerHTML = 'unable to compute'; } } function uploadComplete(evt) { /* This event is raised when the server send back a response */ alert("Billede uploadet!"); } function uploadFailed(evt) { alert("Billedet kunne ikke uploades!"); } function uploadCanceled(evt) { alert("Bøden blev tilføjet!"); } function printt() { window.print(); } </script> <div class="pages"> <div data-page="projects" class="page no-toolbar no-navbar"> <div class="page-content"> <div class="navbarpages" onclick="location.href='index.php';"> <div class="nav_left_logo"><a href="index.php"><img src="images/logo.png" alt="" title="" /></a></div> <div class="nav_right_button"></div> </div> <div id="pages_maincontent"> <h2 class="page_title">Ny Bøde</h2> <div class="page_content"> <h2 id="Note"></h2> <div class="contactform"> <form class="cmxform" id="ContactForm" method="post" action="?send=1" enctype="multipart/form-data"> <label>Løbe nr.:</label> <input type="text" name="lobenr" id="lobenr" value="0C4143A7" class="form_input" readonly /> <label>Gade:</label> <select name="gade" id="gade" class="form_input"> Fatal error: Uncaught Error: Call to undefined function mysqli_query() in /in/o6NLu:173 Stack trace: #0 {main} thrown in /in/o6NLu on line 173
Process exited with code 255.
Output for hhvm-3.15.4
Warning: include(inc/config.inc.php): File not found in /in/o6NLu on line 2 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> <link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="apple-touch-startup-image-640x1096.png"> <title>NemParkering</title> <link rel="stylesheet" href="css/framework7.css"> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="css/colors/blue.css"> <link type="text/css" rel="stylesheet" href="css/swipebox.css" /> <link type="text/css" rel="stylesheet" href="css/animations.css" /> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700,900' rel='stylesheet' type='text/css'> </head> <body id="mobile_wrap"> <script type="text/javascript"> function fileSelected() { var count = document.getElementById('fileToUpload').files.length; document.getElementById('details').innerHTML = ""; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; var fileSize = 0; if (file.size > 1024 * 1024) fileSize = (Math.round(file.size * 100 / (1024 * 1024)) / 100).toString() + 'MB'; else fileSize = (Math.round(file.size * 100 / 1024) / 100).toString() + 'KB'; document.getElementById('details').innerHTML += 'Name: ' + file.name + '<br>Size: ' + fileSize + '<br>Type: ' + file.type; document.getElementById('details').innerHTML += '<p>'; } } function uploadFile() { var fd = new FormData(); var count = document.getElementById('fileToUpload').files.length; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; fd.append('fileToUpload', file); } var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", uploadProgress, false); xhr.addEventListener("load", uploadComplete, false); xhr.addEventListener("error", uploadFailed, false); xhr.addEventListener("abort", uploadCanceled, false); xhr.open("POST", "upload.php"); xhr.send(fd); } function uploadProgress(evt) { if (evt.lengthComputable) { var percentComplete = Math.round(evt.loaded * 100 / evt.total); document.getElementById('progress').innerHTML = percentComplete.toString() + '%'; } else { document.getElementById('progress').innerHTML = 'unable to compute'; } } function uploadComplete(evt) { /* This event is raised when the server send back a response */ alert("Billede uploadet!"); } function uploadFailed(evt) { alert("Billedet kunne ikke uploades!"); } function uploadCanceled(evt) { alert("Bøden blev tilføjet!"); } function printt() { window.print(); } </script> <div class="pages"> <div data-page="projects" class="page no-toolbar no-navbar"> <div class="page-content"> <div class="navbarpages" onclick="location.href='index.php';"> <div class="nav_left_logo"><a href="index.php"><img src="images/logo.png" alt="" title="" /></a></div> <div class="nav_right_button"></div> </div> <div id="pages_maincontent"> <h2 class="page_title">Ny Bøde</h2> <div class="page_content"> <h2 id="Note"></h2> <div class="contactform"> <form class="cmxform" id="ContactForm" method="post" action="?send=1" enctype="multipart/form-data"> <label>Løbe nr.:</label> <input type="text" name="lobenr" id="lobenr" value="E4139B98" class="form_input" readonly /> <label>Gade:</label> <select name="gade" id="gade" class="form_input"> Notice: Undefined variable: mysql in /in/o6NLu on line 173 Fatal error: Uncaught TypeError: Argument 1 passed to mysqli_query() must be an instance of mysqli, null given in /in/o6NLu:173 Stack trace: #0 /in/o6NLu(173): mysqli_query() #1 {main}
Process exited with code 255.
Output for 5.6.38
Warning: include(): open_basedir restriction in effect. File(inc/config.inc.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/o6NLu on line 2 Warning: include(inc/config.inc.php): failed to open stream: Operation not permitted in /in/o6NLu on line 2 Warning: include(): Failed opening 'inc/config.inc.php' for inclusion (include_path='.:') in /in/o6NLu on line 2 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> <link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="apple-touch-startup-image-640x1096.png"> <title>NemParkering</title> <link rel="stylesheet" href="css/framework7.css"> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="css/colors/blue.css"> <link type="text/css" rel="stylesheet" href="css/swipebox.css" /> <link type="text/css" rel="stylesheet" href="css/animations.css" /> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700,900' rel='stylesheet' type='text/css'> </head> <body id="mobile_wrap"> <script type="text/javascript"> function fileSelected() { var count = document.getElementById('fileToUpload').files.length; document.getElementById('details').innerHTML = ""; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; var fileSize = 0; if (file.size > 1024 * 1024) fileSize = (Math.round(file.size * 100 / (1024 * 1024)) / 100).toString() + 'MB'; else fileSize = (Math.round(file.size * 100 / 1024) / 100).toString() + 'KB'; document.getElementById('details').innerHTML += 'Name: ' + file.name + '<br>Size: ' + fileSize + '<br>Type: ' + file.type; document.getElementById('details').innerHTML += '<p>'; } } function uploadFile() { var fd = new FormData(); var count = document.getElementById('fileToUpload').files.length; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; fd.append('fileToUpload', file); } var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", uploadProgress, false); xhr.addEventListener("load", uploadComplete, false); xhr.addEventListener("error", uploadFailed, false); xhr.addEventListener("abort", uploadCanceled, false); xhr.open("POST", "upload.php"); xhr.send(fd); } function uploadProgress(evt) { if (evt.lengthComputable) { var percentComplete = Math.round(evt.loaded * 100 / evt.total); document.getElementById('progress').innerHTML = percentComplete.toString() + '%'; } else { document.getElementById('progress').innerHTML = 'unable to compute'; } } function uploadComplete(evt) { /* This event is raised when the server send back a response */ alert("Billede uploadet!"); } function uploadFailed(evt) { alert("Billedet kunne ikke uploades!"); } function uploadCanceled(evt) { alert("Bøden blev tilføjet!"); } function printt() { window.print(); } </script> <div class="pages"> <div data-page="projects" class="page no-toolbar no-navbar"> <div class="page-content"> <div class="navbarpages" onclick="location.href='index.php';"> <div class="nav_left_logo"><a href="index.php"><img src="images/logo.png" alt="" title="" /></a></div> <div class="nav_right_button"></div> </div> <div id="pages_maincontent"> <h2 class="page_title">Ny Bøde</h2> <div class="page_content"> <h2 id="Note"></h2> <div class="contactform"> <form class="cmxform" id="ContactForm" method="post" action="?send=1" enctype="multipart/form-data"> <label>Løbe nr.:</label> <input type="text" name="lobenr" id="lobenr" value="E4139B98" class="form_input" readonly /> <label>Gade:</label> <select name="gade" id="gade" class="form_input"> Fatal error: Call to undefined function mysqli_query() in /in/o6NLu on line 173
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Warning: include(inc/config.inc.php): failed to open stream: No such file or directory in /in/o6NLu on line 2 Warning: include(): Failed opening 'inc/config.inc.php' for inclusion (include_path='.:') in /in/o6NLu on line 2 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png" /> <link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="apple-touch-startup-image-640x1096.png"> <title>NemParkering</title> <link rel="stylesheet" href="css/framework7.css"> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="css/colors/blue.css"> <link type="text/css" rel="stylesheet" href="css/swipebox.css" /> <link type="text/css" rel="stylesheet" href="css/animations.css" /> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,700,900' rel='stylesheet' type='text/css'> </head> <body id="mobile_wrap"> <script type="text/javascript"> function fileSelected() { var count = document.getElementById('fileToUpload').files.length; document.getElementById('details').innerHTML = ""; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; var fileSize = 0; if (file.size > 1024 * 1024) fileSize = (Math.round(file.size * 100 / (1024 * 1024)) / 100).toString() + 'MB'; else fileSize = (Math.round(file.size * 100 / 1024) / 100).toString() + 'KB'; document.getElementById('details').innerHTML += 'Name: ' + file.name + '<br>Size: ' + fileSize + '<br>Type: ' + file.type; document.getElementById('details').innerHTML += '<p>'; } } function uploadFile() { var fd = new FormData(); var count = document.getElementById('fileToUpload').files.length; for (var index = 0; index < count; index ++) { var file = document.getElementById('fileToUpload').files[index]; fd.append('fileToUpload', file); } var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", uploadProgress, false); xhr.addEventListener("load", uploadComplete, false); xhr.addEventListener("error", uploadFailed, false); xhr.addEventListener("abort", uploadCanceled, false); xhr.open("POST", "upload.php"); xhr.send(fd); } function uploadProgress(evt) { if (evt.lengthComputable) { var percentComplete = Math.round(evt.loaded * 100 / evt.total); document.getElementById('progress').innerHTML = percentComplete.toString() + '%'; } else { document.getElementById('progress').innerHTML = 'unable to compute'; } } function uploadComplete(evt) { /* This event is raised when the server send back a response */ alert("Billede uploadet!"); } function uploadFailed(evt) { alert("Billedet kunne ikke uploades!"); } function uploadCanceled(evt) { alert("Bøden blev tilføjet!"); } function printt() { window.print(); } </script> <div class="pages"> <div data-page="projects" class="page no-toolbar no-navbar"> <div class="page-content"> <div class="navbarpages" onclick="location.href='index.php';"> <div class="nav_left_logo"><a href="index.php"><img src="images/logo.png" alt="" title="" /></a></div> <div class="nav_right_button"></div> </div> <div id="pages_maincontent"> <h2 class="page_title">Ny Bøde</h2> <div class="page_content"> <h2 id="Note"></h2> <div class="contactform"> <form class="cmxform" id="ContactForm" method="post" action="?send=1" enctype="multipart/form-data"> <label>Løbe nr.:</label> <input type="text" name="lobenr" id="lobenr" value="E4139B98" class="form_input" readonly /> <label>Gade:</label> <select name="gade" id="gade" class="form_input"> Fatal error: Call to undefined function mysqli_query() in /in/o6NLu on line 173
Process exited with code 255.