ksduh - 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.
Result of php executing
Full code of ksduh.php
- while($res = mysqli_fetch_assoc($result)) {
- <div class="descr"><?=$res['when']?> door <?
- if (substr_compare($res['site'], "http://", 0, 7, true) != 0 &&
- substr_compare($res['site'], "https://", 0, 8, true) != 0) {
- $res['site'] = " ";
- }
- htmlspecialchars($res['site'], ENT_QUOTES)
- //mysqli_real_escape_string($sql, $_POST['message'])
- $result = $sql->query("INSERT INTO messages (name, site, message) VALUES ('" . mysqli_real_escape_string($sql, $_POST['name']) . "','" . mysqli_real_escape_string($sql, $_POST['website']) . "','" . mysqli_real_escape_string($sql, $_POST['message']) . "')");
- //if (str_len($res['site']) >= 7)
- if (file_exists("/var/www/contents/" . mysqli_real_escape_string($sql, htmlspecialchars($_GET['file']), ENT_QUOTES))) {
File Description
- ksduh
- PHP Code
- 10 Dec-2019
- 753 Bytes
You can Share it:
Latest PHP Pastes