]> git.mxchange.org Git - friendica-addons.git/blob - pages/test.php
Merge commit 'upstream/master'
[friendica-addons.git] / pages / test.php
1 <?php
2
3 $test[] = array("test"=>"Blubb");
4 $test[] = array("test"=>"Blubb");
5
6 print_r($test);
7 $serial = serialize($test);
8
9 print_r(unserialize($serial));
10 die();
11
12 $url = "https://pirati.ca/profile/test1";
13
14 $ch = curl_init();
15
16 curl_setopt($ch, CURLOPT_URL, $url);
17 curl_setopt($ch, CURLOPT_HEADER, 0);
18 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19 curl_setopt($ch, CURLOPT_TIMEOUT, 2);
20  
21 $page = curl_exec($ch);
22  
23 curl_close($ch);
24
25 if (strpos($page, '<meta name="friendika.community" content="true" />'))
26         echo "Ping";
27
28 ?>