View fiddle_021551.php
<?php
define( 'MYSQL_HOST', '//////' );
define( 'MYSQL_USER', '//////' );
define( 'MYSQL_PASSWORD', '//////' );
define( 'MYSQL_DB_NAME', '//////' );
try
{
$PDO = new PDO( 'mysql:host=' . MYSQL_HOST . ';dbname=' . MYSQL_DB_NAME, MYSQL_USER, MYSQL_PASSWORD, array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
View fiddle_041254.php
<?php
libxml_use_internal_errors(true);
$html = file_get_contents('https://www.set.or.th/set/companyhighlight.do?symbol=CPALL&ssoPageId=5&language=th&country=TH');
$doc = new DOMDocument();
$doc->loadHTML($html);
$maincontent = $doc->getElementById('maincontent');
$maincontent_html = $maincontent->ownerDocument->saveHTML($maincontent);
echo $maincontent_html;
?>
View fiddle_047706.php
<?php
setcookie("test_cookie", "test", time() + 3600, '/');
?>
<html>
<body>
<?php
$seedUrl = "https://finance.yahoo.com/quote/%5EGSPC/history?period1=1496548800&period2=1496635200&interval=1d&filter=history&frequency=1d";
View fiddle_083037.php
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Datos obtenidos</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css"/>
</head>
<body>
View fiddle_058577.php
<?php
/**
* PDO MySQL initial code
*
* User permissions of database
* Create, Alter and Index table, Create view, and Select, Insert, Update, Delete table data
*
* @package PhpFiddle
* @link http://phpfiddle.org
View fiddle_091230.php
<?php
/**
* Mysqli initial code
*
* User permissions of database
* Create, Alter and Index table, Create view, and Select, Insert, Update, Delete table data
*
* @package PhpFiddle
* @link http://phpfiddle.org
View fiddle_060872.php
<?php
/*
For demo, click "Run" now!
Instructions
* - Scroll to settings object in Line 23
* - Add as many 'items' as you wish
* - Experiment with thumnbail margins, borders (no border-box box sizing)
View fiddle_094751.php
<style type="text/css">
.rating-frame {
width: 90px;
height: 17px;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAiCAIAAADd1h6tAAACXUlEQVQ4y5VTW27aUBCdJWQJXQpLyRK6gywhS+gSKrUf5CdK04JrwCIxuGnA+IEBJwYDtpMQMI/bczEpD19LcDUajWbmeM48TEz0ptNpoViEZhmPhF7TspRqtanrJ8Dm87lcKtm2DQ37WFjbcSqKMhwOLcuCfSxMLpdN05xMJrPZLKsg9VwXn6xrGgRFCpJUrVZHo9FiseBN2vZvWcaHkgRkIp/D0HelUmk0GoZpdrvdwWAQRdFuBdhBEDiOg25r9XoyJ0qa0TQNFZCxXC5Xq1WaVRiGjWbzf6ub3rx+/75W6/f7wgH4vg+Gz54nGAmYoIf31Ir5PsplRDMniTDIHJBM1pi5AJySJMv4aro3TPjg0LYwfzgsravFcWwYBm4SGttDSNd1b6exPRhWrKqq3mqBUjIxrAi0Ldt2XRdRMQyzAgDhg6XBoyhKTdPEMNDI+lPgzyR50hPD5m9W+ztBnwYbaZ9f/pB/d34CbBmPO/kzNiZo2MfCgseLUCUWETTsY2GdqzPmEwsJGrawIEXmZdC48KScV8z1rj+1v1GgEAsIJKGjO+rmOVueIOVQPDIuOcy/Pw/LtDS4sC6vsJXBh37aJCAzmRMlzYxlYoB5xJ7X4qXEoEDetrrp7dX5MrihuL4uCOl8GGuBH1HkCEby7t/wYbSImcSsHWnx3hDNnCSHPRJr7stfDstcAE7JveJJaXHzh4e2hU2evo6uiT0Q0+j1J2ETL7fEVO4Jf+w1tgfDHcYSTQqcEjYJD1YE++0XwY+oGIZtgiTCu2cBG55enhAVw0Aj60+BP5PkSe8fk+toIJaypK8AAAAASUVORK5CYII=');
background-r
View fiddle_060494.php
<?php
echo "Hello"
?>
View fiddle_095470.php
<!-- *** PhpFiddle Lite *** -->
<?php
include_once ("http://www.sepatuonline.net/wp-content/themes/sandaljepit/scrape/simple_html_dom.php");
$urldata = preg_replace("/ /", "+","http://bandros.id/stok_api/produk/search/?apikey=mzlf6i0mcg&kode=L+174");
$html = file_get_html($urldata);
// this has to be in JSON format
echo json_decode($html);
$dataArray = $dataArray["result"]["stok"];