Skip to content

Instantly share code, notes, and snippets.

Masayuki Nii msyk

Block or report user

Report or block msyk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
msyk / router.php
Last active May 15, 2017 — forked from matsuo/router.php
ローカルでFileMaker Data APIを使って開発する際に利用するPHPのビルトインサーバー用ルータースクリプト
View router.php
$url = "" . $_SERVER['REQUEST_URI'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
if (in_array($_SERVER['REQUEST_METHOD'], array('PUT', 'DELETE'))) {
View composite_example.php
abstract class Component {
protected $parent = null;
protected $children = array();
protected $name;
abstract function add($child);
abstract function remove($child);
abstract function getChildren();
abstract function print();
You can’t perform that action at this time.