Skip to content

Instantly share code, notes, and snippets.

@i556
i556 / gist:1661623
Created January 23, 2012 08:10
Cross Domain iframe Resizing
http://mohumohu/parent.html
http://hogehoge.com/iframe.html
//parent.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
@i556
i556 / Count all PHP functions
Created June 5, 2012 02:32
count the number of all PHP functions
<?php
$cnt = 0;
$page = file_get_contents('http://jp.php.net/manual/ja/indexes.functions.php');
$c = preg_match_all("(href=\"function.)", $page, $match, PREG_PATTERN_ORDER);
echo $c;
?>