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 | |
// Using environment library fiddle_envlib.php to files that saved under user id folder | |
//include "fiddle_envlib.php"; | |
?> |
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 | |
// Using environment library fiddle_envlib.php to files that saved under user id folder | |
//include "fiddle_envlib.php"; | |
?> |
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('hi'); | |
?> |
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
<div style="width: 730px; margin: 20px auto; font-family:sans-serif;"> | |
<?php | |
/** Include class */ | |
require "GoogChart.class.php"; | |
/** Create chart */ | |
$chart = new GoogChart(); | |
/* |
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 | |
?> |
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 | |
namespace InterfacesExampleApi; | |
/** | |
* Interface ApiClientInterface | |
* @package InterfacesExampleApi | |
*/ | |
interface ApiClientInterface | |
{ |
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 | |
for($i=0; $i<10; $i++){ | |
for($j=0; $j<$i; $j++){ | |
echo $j+1 . " "; | |
} | |
echo "<br>"; | |
} | |
?> |
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> | |
<head> | |
<title>fibonacci Sequence</title> | |
<link rel="stylesheet" type="text/css" href="common.css" /> | |
<style type="text/css"> | |
th { | |
text-align: left; | |
background-color: #aaa; | |
} |
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 | |
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')); |
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 | |
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; | |
?> |