From c876202c206c4bfe6bebae46ec28c6e55a753eba Mon Sep 17 00:00:00 2001 From: sikofitt Date: Sat, 24 Dec 2016 07:15:34 -0800 Subject: [PATCH] Modified example.php --- example.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/example.php b/example.php index 520c7b6..2b2d096 100644 --- a/example.php +++ b/example.php @@ -9,17 +9,23 @@ require __DIR__ . '/vendor/autoload.php'; $client = new \Sikofitt\Tor\TorClient(); -//$client->get('http://32b5oz2bbtn6gqj3.onion/index.php/Main_Page'); +$client->get('http://32b5oz2bbtn6gqj3.onion/index.php/Main_Page'); +$images = $client->images(); +foreach($images as $image) +{ + $result[] = $image->toArray(); +} + $client->get('http://4sy6ebszykvcv2n6.onion/'); -//$client->get('https://de.indymedia.org/index.shtml'); + $images = $client->images(); //dump($images); +//$client->get('https://de.indymedia.org/index.shtml'); foreach($images as $image) { $result[] = $image->toArray(); } dump($result); -dump(json_encode(serialize($result))); -file_put_contents('data.json', json_encode($result, JSON_PRETTY_PRINT)); +