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 | |
function diddyMyRobot($x, $y, $d, $sp) { | |
$stringArray = str_split($sp); | |
foreach( $stringArray as $key => $value ){ | |
if( $value == 'W' ) { continue; } | |
switch ( strtoupper($d) ) { |
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 // testfile.php | |
$fh = fopen("testfile.txt", 'w') or die("Failed to create a file"); | |
$text = <<<_END | |
Line 1 | |
Line 2 | |
Line 3 | |
_END; | |
fwrite($fh, $text) or die("Could not write to file"); |
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> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Title</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"> | |
</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 | |
//setting namespace | |
$ns = "http://".$_SERVER['HTTP_HOST']."/12141363/wskategori.php"; | |
//load nusoap library | |
require_once 'lib/nusoap.php'; | |
$server = new soap_server; | |
//create soap server object | |
$server->configureWSDL("WEB SERVICE MENGGUNAKAN SOAP WSDL", $ns); // wsdl configuration |
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
<style> | |
.personal_details{ | |
border: solid 1px darkblue; | |
width:350px; | |
height:300px; | |
font-family:arial; | |
background-color:grey; | |
} | |
</style> |
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 | |
/*для русских месяцев */ | |
$overround = 'ini'.'_set'; | |
$overround('date.timezone', 'Europe/Moscow'); | |
if (isset($_REQUEST['send'])) { | |
try { | |
$date = DateTime::createFromFormat('d.m.Y', implode('.', [$_REQUEST['a'], $_REQUEST['b'], $_REQUEST['c']])); | |
if ($date == false) | |
throw new Exception('не верная дата'); | |
$cal1 = IntlCalendar::fromDateTime($date->format('Y-m-d') . ' 00:00:00 Europe/Moscow'); |
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 | |
function treatNode($node) | |
{ | |
if ($node->hasChildNodes()) { | |
foreach ($node->childNodes as $child){ | |
treatNode($child); | |
} | |
} else { |
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 'test'; | |
?> |
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 'test'; | |
?> |
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 | |
$secret = 'onveilig gedeeld geheim'; | |
$timeout = time() + 60*60; //1h signature expire, timeout in seconds | |
$parameters = array( //parameters example | |
'timeout' => $timeout, | |
'Sat' => '', | |
'a' => '1 vet', | |
'b' => '2 gaaf' | |
); | |
ksort($parameters); |