Skip to content

Instantly share code, notes, and snippets.

<?php
$id = intval(array_shift(array_keys($_GET)));
$start = "http://danbooru.donmai.us/pool/show/$id";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $start);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)');
curl_setopt($curl, CURLOPT_TIMEOUT, 20);
@4otaku
4otaku / test.php
Created May 21, 2011 08:44 — forked from phpony/test.php
Hi!
<?php
interface Communication_Interface
{
public function get_phrase($phrase);
public function process_phrase();
public function communicate();
}