View fiddle_074173.php
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h2>Tema</h2>
View fiddle_014699.php
<?php
/*
createProfile -
for http://embed.plnkr.co/WfE5Vt58d792f8dVXbpM/
*/
$id = 7613;
$i = 0;
if (isset($_POST['id']) && is_int((int)$_POST['id'])) {
$i = (int)$_POST['id'];
$id += $i;
View fiddle_084335.php
<?php
/**
Finding an exact match in a text file using PHP AJAX jQuery form
http://stackoverflow.com/questions/15121403/finding-an-exact-match-in-a-text-file-using-php-ajax-jquery-form
*/
if(isset($_POST["email"])){
$email = $_POST['email'];
$emails = <<<emails
View fiddle_033029.php
<?php
if(isset($_POST["email"])){
$email = $_POST['email'];
$emails = <<<emails
Bobby Brown bobby@somewhere.com
Guy Slim guy@somewhere.com
Slim Jim slim@somewhere.com
emails;
if (strpos($email,'@')) {
$match = preg_match("/\b{$email}\b/i", $emails );
View fiddle_011534.php
<?php
// chkNull function similar to JS used in calculations
function chkNull($val) {
return (($val !== '0' && $val !== (int)0 && $val !== (float)0
&& ($val == '' || $val == null || $val === 'NaN' || is_nan($val) || !is_numeric($val)))
? NAN : $val*1);
}
View fiddle_013330.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title><? echo $title; ?></title>
<link rel="stylesheet" type="text/css" href=�css/webd2201.css"/>
</head>
<body>
View fiddle_096791.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Colours</title>
<meta name=viewport content="width=device-width, initial-scale=1">
<style>
.colour-div {
display: inline-block;
padding: 10px;
View fiddle_053601.php
<?php
$data = "foo:*:1023:1000::/home/foo:/bin/sh";
list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data);
echo $user; // foo
echo $pass; // *
echo $uid; //1023
?>
View fiddle_079523.php
<?php
class css_colour_displayer {
private $colours_file_name;
private $page_heading;
private $styles;
function __construct($file_url, $file_name, $page_heading, $styles) {
$this->styles = $styles;
$this->page_heading = $page_heading;
$this->colours_file_name = $file_name;
$this->load_and_write_file($file_url);
View fiddle_073646.php
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
var _optaParams = {
custID: '',
language: 'en'
};
</script>
<div>