This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class HumanClass | |
{ | |
public function __construct($firstName = 'Unknown', $lastName = 'Unknown', $sex = 'Unknown', $age = 0) | |
{ | |
echo 'My name is ' . $this->firstName($firstName) . ' ' . $this->lastName($lastName) . ' I\'m ' . $this->sex($sex) . ' and ' . $this->age($age) . ' years old.'; | |
} | |
public function firstName(string $fName) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "Hello World!"; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$months = array( | |
1 => 'Jan', | |
2 => 'Feb', | |
3 => 'March', | |
4 => 'April', | |
5 => 'May', | |
6 => 'June', | |
7 => 'July', | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "dfdd"; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo __DIR__ . '/../'; | |
?> |