Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
[B]Warning: simplexml_load_file() [function.simplexml-load-file]: http://api.filesonic.com/link?method=getInfo&ids=3999034095.xml:1: parser error : Start tag expected, '<' not found in[B]C:\test.php on line [B]4
[B]Warning: simplexml_load_file() [function.simplexml-load-file[URL="http://localhost/scripts/links/jd/function.simplexml-load-file"][/URL]]: {"FSApi_Link":{"getInfo":{"response":{"links":[{"id":3999034095,"filename":"cook in [B]C:\test.php on line [B]4
[B]Warning: simplexml_load_file() [function.simplexml-load-file[URL="http://localhost/scripts/links/jd/function.simplexml-load-file"][/URL]]: ^ in [B]C:\test.php on line [B]4[/B][/B][/B][/B][/B][/B][/B][/B][/B]
<?php
$xml = simplexml_load_file('http://api.filesonic.com/link?method=getInfo&ids=3999034095.xml');
echo $xml;
?>
auch echo $xml->filename[0]; hilft nicht ...
zufällig ahnung von xml ? xD
[COLOR=#000000][COLOR=#FF8000]// Liest eine Datei in ein Array. Hier gehen wir über HTTP, um den
// HTML-Quelltext einer URL zu bekommen
[/COLOR][COLOR=#0000BB]$lines [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]file[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]'[/COLOR][/COLOR]http://api.filesonic.com/link?method=getInfo&ids=3999034095.xml[COLOR=#000000][COLOR=#DD0000]'[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#FF8000]// Durchgehen des Arrays und Anzeigen des HTML-Quelltexts inkl. Zeilennummern
[/COLOR][COLOR=#007700]foreach ([/COLOR][COLOR=#0000BB]$lines [/COLOR][COLOR=#007700]as [/COLOR][COLOR=#0000BB]$line_num [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#0000BB]$line[/COLOR][COLOR=#007700]) {
echo [/COLOR][COLOR=#DD0000]"Zeile #[/COLOR][COLOR=#007700]{[/COLOR][COLOR=#0000BB]$line_num[/COLOR][COLOR=#007700]}[/COLOR][COLOR=#DD0000] : " [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]htmlspecialchars[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$line[/COLOR][COLOR=#007700]) . [/COLOR][COLOR=#DD0000]"<br>\n"[/COLOR][COLOR=#007700];
}[/COLOR][/COLOR]
0 : {"FSApi_Link":{"getInfo":{"response":{"links":[{"id":3999034095,"filename":"cookie_monsta_-_Flubberdub.rar","size":3259517,"description":"","is_password_protected":false,"is_premium_only":false,"updated_on":"2011-11-24 20:42:01","status":"AVAILABLE","url":"http:\/\/www.filesonic.com\/file\/3999034095"}]},"status":"success"}}}
<?php
$jsonfile = file_get_contents('http://api.filesonic.com/link?method=getInfo&ids=3999034095.xml');$jsonarray = var_dump(json_decode($jsonfile));
echo $jsonarray['filename'];
?>
object(stdClass)#1 (1) { ["FSApi_Link"]=> object(stdClass)#2 (1) { ["getInfo"]=> object(stdClass)#3 (2) { ["response"]=> object(stdClass)#4 (1) { ["links"]=> array(1) { [0]=> object(stdClass)#5 (9) { ["id"]=> float(3999034095) ["filename"]=> string(30) "cookie_monsta_-_Flubberdub.rar" ["size"]=> int(3259517) ["description"]=> string(0) "" ["is_password_protected"]=> bool(false) ["is_premium_only"]=> bool(false) ["updated_on"]=> string(19) "2011-11-24 20:42:01" ["status"]=> string(9) "AVAILABLE" ["url"]=> string(40) "http://www.filesonic.com/file/3999034095" } } } ["status"]=> string(7) "success" } } }
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"][/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"][/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"]object(stdClass)#1 (1) {[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["FSApi_Link"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] object(stdClass)#2 (1) {[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["getInfo"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] object(stdClass)#3 (2) {[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["response"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] object(stdClass)#4 (1) {[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["links"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] array(1) {[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] [0]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] object(stdClass)#5 (9) {[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["id"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] float(3999034095)[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["filename"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] string(30) "cookie_monsta_-_Flubberdub.rar"[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["size"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] int(3259517)[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["description"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] string(0) ""[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["is_password_protected"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] bool(false)[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["is_premium_only"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] bool(false)[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["updated_on"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] string(19) "2011-11-24 20:42:01"[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["status"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] string(9) "AVAILABLE"[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["url"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] string(40) "http://www.filesonic.com/file/3999034095"[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] }[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] }[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] }[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] ["status"]=>[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] string(7) "success"[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] }[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"] }[/TD]
[TD="class: webkit-line-number"][/TD]
[TD="class: webkit-line-content"]}[/TD]
$link = @file_get_contents("http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=checkfiles&files=3644665873&filenames=Skrillex_-_Do_Da_Oliphant.rar");
//Links splitten bei |
$link = explode(",", $link);
foreach ($link as $value) {
echo $value;
3644665873
Skrillex_-_Do_Da_Oliphant.rar
13203833
674
1
tl2
4C28CFF04C8757F7B662125351C26E37
<?php
$data = @file_get_contents("http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=checkfiles&files=3644665873&filenames=Skrillex_-_Do_Da_Oliphant.rar");
$parts = explode(",", $data);
var_dump($parts[1], $parts[2]);