View fiddle_023172.php
<?php
echo "Hello World!";
?>
View fiddle_043848.php
<?php
//https://discordapp.com/api/webhooks/473908899423191061/wOmWGcIB9m9YjCJYO6KR4PrthRxxNdxFf2HCk1PrRtbwwDic8jAVIPehLLKFLWI2AKVZ
$curl = curl_init("https://discordapp.com/api/webhooks/473908899423191061/wOmWGcIB9m9YjCJYO6KR4PrthRxxNdxFf2HCk1PrRtbwwDic8jAVIPehLLKFLWI2AKVZ");
curl_setopt($curl,CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode(array("content" => "All units be advides, vehicle accident located in Westover gas. x2 vehicles involved. Timeout, 14:01")));
echo curl_exec($curl);
View fiddle_014568.php
<!-- THIS POPULATES THE "Assign this art item to:" select box -->
<?php
function my_post_object_query( $args, $field, $post_id ) {
//query locations available only to that logged user
$args = array(
'post_type' => 'krohne_location',
'author' => get_current_user_id()
View fiddle_048079.php
<?php
$months = array(
1 => 'Jan',
2 => 'Feb',
3 => 'March',
4 => 'April',
5 => 'May',
6 => 'June',
7 => 'July',
);
View fiddle_063130.php
<?php
$short_connect = new mysqli("app.comet-server.ru", "15", "lPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8", "CometQL_v1");
$sql = "show status";
//result is boolean for query other than SELECT, SHOW, DESCRIBE and EXPLAIN
$result = $short_connect->query($sql);
if (($result) && ($result->num_rows > 0))
View fiddle_049668.php
<?php
$short_connect = new mysqli("app.comet-server.ru", "15", "lPXBFPqNg3f661JcegBY0N0dPXqUBdHXqj2cHf04PZgLHxT6z55e20ozojvMRvB8", "CometQL_v1");
$sql = "show status";
//result is boolean for query other than SELECT, SHOW, DESCRIBE and EXPLAIN
$result = $short_connect->query($sql);
if (($result) && ($result->num_rows > 0))
View fiddle_036399.php
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
View fiddle_086911.php
<?php
echo "dfdd";
?>
View fiddle_092431.php
<?php
echo __DIR__ . '/../';
?>
View fiddle_016322.php
<?php
// Trimming String
$s1 = " Rakesh Kumar ";
//echo "Original String: ","<br/>";
//var_dump($s1);
//echo "<br/>Length of original string: ",strlen($s1); //Returns the length of a string strlen(string) Returns the length of a string on success, and 0 if the string is empty
//echo "<br/>CHOP:\t";
//var_dump(chop($s1)); //Remove whitespace and other predefined characters from the right end of a string. chop(string[,charlist]) Returns the modified string.