• 31-01-2013, 21:09:31
    #1
    merhaba, samundra.com.np/facebook-video/

    bu sitenin yaptığını yapabilir miyiz?

    yapamadığım şey bunu:
    HTTP/1.1 200 OK Cache-Control: private, no-cache, no-store, must-revalidate Content-Type: application/x-javascript; charset=utf-8 Expires: Sat, 01 Jan 2000 00:00:00 GMT P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p" Pragma: no-cache X-Content-Type-Options: nosniff X-Frame-Options: DENY Set-Cookie: datr=hL4KUbxZ-2ua0G2Iq-737iBP; expires=Sat, 31-Jan-2015 18:57:08 GMT; path=/; domain=.facebook.com; httponly X-FB-Debug: ui02ZI/ofGr5HZFx7L4RI4TfbTWeLKhaK0ulKtUnqYI= Date: Thu, 31 Jan 2013 18:57:08 GMT Connection: keep-alive Content-Length: 6248 for (;;);{"__ar":1,"payload":null,"domops":[["setContent","^*",true,{"__html":"\u003Cdiv id=\"id_510abe84557772b63824193\" style=\"width:398px;height:223px\">\u003C\/div>"}],["remove","",true,{"__html":""}]],"jscc_map":"({\"j0PfRhmfVb8OZ0Uj1e0\":function(){return (function() {\n var swf;\n try {swf_id = \"swf_id_510abe84557772b63824193\";swf = new SWFObject(\"http:\\\/\\\/static.ak.fbcdn.net\\\/rsrc.php\\\/v1\\\/yp\\\/r\\\/RJAwNh-xJiS.swf\", swf_id, \"398\", \"223\", [\"10.3.181.34\",\"11.0.0\"], \"#000000\");[[\"allowFullScreen\",\"true\"],[\"allowScriptAccess\",\"always\"],[\"salign\",\"tl\"],[\"scale\",\"noscale\"],[\"wmode\",\"opaque\"]].forEach(function(param) {swf.addParam(param[0], param[1]);});\n[[\"params\",\"\\u00257B\\u002522sd_src\\u002522\\u00253A\\u002522http\\u00253A\\u00255C\\u00252F\\u00255C\\u00252Fvideo.ak.fbcdn.net\\u00255C\\u00252Fcfs-ak-ash4\\u00255C\\u00252Fv\\u00255C\\u00252F435767\\u00255C\\u00252F64\\u00255C\\u00252F110861919048164_58132.mp4\\u00253Foh\\u00253D25695c4d4c8e92f4fdfef3845aa3ac01\\u002526oe\\u00253D510ADE52\\u002526__gda__\\u00253D1359665615_105f34622615f39c0a43f5553ff1c95f\\u002522\\u00252C\\u002522hd_src\\u002522\\u00253A\\u002522http\\u00253A\\u00255C\\u00252F\\u00255C\\u00252Fvideo.ak.fbcdn.net\\u00255C\\u00252Fcfs-ak-ash4\\u00255C\\u00252Fv\\u00255C\\u00252F455931\\u00255C\\u00252F64\\u00255C\\u00252F110861919048164_35204.mp4\\u00253Foh\\u00253Da749ccaa76cad7753bcedd6b119cc096\\u002526oe\\u00253D510AD9C0\\u002526__gda__\\u00253D1359666749_1f08bf12c2f0ea157b46d7e395bdc290\\u002522\\u00252C\\u002522default_hd\\u002522\\u00253Atrue\\u00252C\\u002522embedded\\u002522\\u00253Afalse\\u00252C\\u002522permalink_url\\u002522\\u00253A\\u002522http\\u00253A\\u00255C\\u00252F\\u00255C\\u00252Fwww.facebook.com\\u00255C\\u00252Fphoto.php\\u00253Fv\\u00253D110861919048164\\u002522\\u00252C\\u002522autoplay\\u002522\\u00253Atrue\\u00252C\\u002522video_id\\u002522\\u00253A\\u002522110861919048164\\u002522\\u00252C\\u002522thumbnail_src\\u002522\\u00253A\\u002522http\\u00253A\\u00255C\\u00252F\\u00255C\\u00252Fvthumb.ak.fbcdn.net\\u00255C\\u00252Fhvthumb-ak-ash3\\u00255C\\u00252F574302_110863489048007_110861919048164_61355_1758_b.jpg\\u002522\\u00252C\\u002522video_duration\\u002522\\u00253A32\\u00252C\\u002522rotation\\u002522\\u00253A0\\u00252C\\u002522source\\u002522\\u00253A\\u002522misc\\u002522\\u00252C\\u002522dtsg\\u002522\\u00253A\\u002522AQAwqe4F\\u002522\\u00257D\"],[\"width\",\"398\"],[\"height\",\"223\"],[\"user\",\"0\"],[\"log\",\"no\"],[\"div_id\",\"id_510abe84557772b63824193\"],[\"swf_id\",\"swf_id_510abe84557772b63824193\"],[\"browser\",\"Unknown+0\"],[\"tracking_domain\",\"http\\u00253A\\u00252F\\u00252Fpixel.facebook.com\"],[\"post_form_id\",\"\"],[\"string_table\",\"http\\u00253A\\u00252F\\u00252Fstatic.ak.fbcdn.net\\u00252Fflash_strings.php\\u00252Ft94420\\u00252Ftr_TR\"]].forEach(function(variable) {swf.addVariable(variable[0], variable[1]);});\n\t\tswf.fallback_html = \"\\u003Cdiv class=\\\"pam uiBoxLightblue\\\" style=\\\"line-height: normal;\\\">\\u003Cdiv class=\\\"clearfix\\\">\\u003Cimg class=\\\"_29h _29i img\\\" src=\\\"http:\\\/\\\/static.ak.fbcdn.net\\\/rsrc.php\\\/v2\\\/y0\\\/r\\\/R5elJ8FuA3V.gif\\\" alt=\\\"\\\" width=\\\"16\\\" height=\\\"16\\\" \\\/>\\u003Cdiv class=\\\"_29j _29k\\\">\\u003Cdiv class=\\\"fsl fwb fcb\\\">Flash Player'\\u0131n g\\u00fcncellenmesi gerekiyor\\u003C\\\/div>\\u003Cdiv class=\\\"mvs fsm fwn fcg\\\">Bu i\\u00e7eri\\u011fi g\\u00f6rmek i\\u00e7in Adobe Flash Player'\\u0131n son s\\u00fcr\\u00fcm\\u00fcn\\u00fc indirip y\\u00fcklemelisin.\\u003C\\\/div>\\u003Cdiv class=\\\"flashFallbackButton\\\">\\u003Ca href=\\\"\\\/l.php?u=http\\u00253A\\u00252F\\u00252Fget.adobe.com\\u00252Fflashplayer&h=hAQFjREx8&s=1\\\" rel=\\\"nofollow\\\" onmouseover=\\\"LinkshimAsyncLink.swap(this, "http:\\\\\\\/\\\\\\\/get.adobe.com\\\\\\\/flashplayer");\\\" onclick=\\\"LinkshimAsyncLink.swap(this, "\\\\\\\/l.php?u=http\\\\u00253A\\\\u00252F\\\\u00252Fget.adobe.com\\\\u00252Fflashplayer&h=hAQFjREx8&s=1");\\\" target=\\\"_blank\\\">\\u003Clabel class=\\\"uiButton uiButtonSpecial\\\" for=\\\"u_9n4083_0\\\">\\u003Cinput value=\\\"Flash Player Yükle\\\" type=\\\"button\\\" onclick=\\\"this.disabled=true;\\\" id=\\\"u_9n4083_0\\\" \\\/>\\u003C\\\/label>\\u003C\\\/a>\\u003C\\\/div>\\u003C\\\/div>\\u003C\\\/div>\\u003C\\\/div>\";window[swf_id] = swf;swf.write(\"id_510abe84557772b63824193\");} catch (e) {}\n return swf;\n })();}})","css":["9p1Lg","dgsbM"],"js":["1Y1Q9","TUck3","cn0J1","fR4HR","DGPzS"],"onload":["ge(\"u879823_18\") && CSS.addClass($(\"u879823_18\").parentNode, \"exploded\");Arbiter.inform(\"flash\\\/expand_inline\");","JSCC.get(\"j0PfRhmfVb8OZ0Uj1e0\")"],"bootloadable":{"ErrorDialog":{"resources":["cn0J1","DGPzS","dgsbM","Zfqw6"],"module":true},"IframeShim":{"resources":["cn0J1","DGPzS","MqSmz"],"module":true},"AsyncDOM":{"resources":["cn0J1","bEufR"],"module":true},"ConfirmationDialog":{"resources":["cn0J1","DGPzS","oE4Do"],"module":true},"Dialog":{"resources":["cn0J1","DGPzS","dgsbM"],"module":true}},"resource_map":{"9p1Lg":{"type":"css","permanent":1,"src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/ya\/r\/jJP9hW9Sq3R.css"},"dgsbM":{"type":"css","permanent":1,"src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y2\/r\/7YudOjCpR-0.css"},"1Y1Q9":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yV\/r\/3FznI1qwj8f.js"},"TUck3":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y1\/r\/65TxRuTqmIx.js"},"cn0J1":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yL\/r\/D6JAwHSZDea.js"},"fR4HR":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yu\/r\/iNeGtBMFVez.js"},"DGPzS":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yW\/r\/kZ3SlT9GzF4.js"},"Zfqw6":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yY\/r\/sV3IcioKrvL.js"},"MqSmz":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yH\/r\/ghlEJgSKAee.js"},"bEufR":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yU\/r\/Ph_PwC0IBpl.js"},"oE4Do":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yD\/r\/65c9OW-i481.js"}}}
    bu hale getirebilmek:
    HTTP/1.1 200 OK Cache-Control: private, no-cache, no-store, must-revalidate Content-Type: application/x-javascript; charset=utf-8 Expires: Sat, 01 Jan 2000 00:00:00 GMT P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p" Pragma: no-cache X-Content-Type-Options: nosniff X-Frame-Options: DENY Set-Cookie: datr=HLgKUbSCF5zEpRGXqeIPjns-; expires=Sat, 31-Jan-2015 18:29:48 GMT; path=/; domain=.facebook.com; httponly X-FB-Debug: niOdDkbC8H44pLj4WOVziBJMtVoN0yi2A7byOWNeaLI= Date: Thu, 31 Jan 2013 18:29:48 GMT Connection: keep-alive Content-Length: 6248 for (;;);{"__ar":1,"payload":null,"domops":[["setContent","^*",true,{"__html":"<div id="id_510ab81c13fdf2551166155" style="width:398px;height:223px"></div>"}],["remove","",true,{"__html":""}]],"jscc_map":"({"j0boToLGIjWW12Apv60":function(){return (function() {n var swf;n try {swf_id = "swf_id_510ab81c13fdf2551166155";swf = new SWFObject("http://static.ak.fbcdn.net/rsrc.php/v1/yh/r/SsysNQdQByb.swf", swf_id, "398", "223", ["10.3.181.34","11.0.0"], "#000000");[["allowFullScreen","true"],["allowScriptAccess","always"],["salign","tl"],["scale","noscale"],["wmode","opaque"]].forEach(function(param) {swf.addParam(param[0], param[1]);});n[["params","{"sd_src":"http://video.ak.fbcdn.net/cfs-ak-ash4/v/435767/64/110861919048164_58132.mp4?oh=9bf486940550a95a684bcd2a78d61dc4&oe=510AD4F2&__gda__=1359663215_b377141552d716a82f3d49673e1baa59","hd_src":"http://video.ak.fbcdn.net/cfs-ak-ash4/v/455931/64/110861919048164_35204.mp4?oh=bb14fdf5329c2bf6cfcc99085f977d41&oe=510AD060&__gda__=1359664349_72d1e57e7970cc3e683000ee9fadda08","default_hd":true,"embedded":false,"permalink_url":"http://www.facebook.com/photo.php?v=110861919048164","autoplay":true,"video_id":"110861919048164","thumbnail_src":"http://vthumb.ak.fbcdn.net/hvthumb-ak-ash3/574302_110863489048007_110861919048164_61355_1758_b.jpg","video_duration":32,"rotation":0,"source":"misc","dtsg":"AQAwqe4F"}"],["width","398"],["height","223"],["user","0"],["log","no"],["div_id","id_510ab81c13fdf2551166155"],["swf_id","swf_id_510ab81c13fdf2551166155"],["browser","Unknown+0"],["tracking_domain","http://pixel.facebook.com"],["post_form_id",""],["string_table","http://static.ak.fbcdn.net/flash_strings.php/t94420/tr_TR"]].forEach(function(variable) {swf.addVariable(variable[0], variable[1]);});nttswf.fallback_html = "<div class="pam uiBoxLightblue" style="line-height: normal;"><div class="clearfix"><img class="_29h _29i img" src="http://static.ak.fbcdn.net/rsrc.php/v2/y0/r/R5elJ8FuA3V.gif" alt="" width="16" height="16" /><div class="_29j _29k"><div class="fsl fwb fcb">Flash Player'ın güncellenmesi gerekiyor</div><div class="mvs fsm fwn fcg">Bu içeriği görmek için Adobe Flash Player'ın son sürümünü indirip yüklemelisin.</div><div class="flashFallbackButton"><a href="/l.php?u=http://get.adobe.com/flashplayer&h=BAQGPRtzv&s=1" rel="nofollow" onmouseover="LinkshimAsyncLink.swap(this, "http://get.adobe.com/flashplayer");" onclick="LinkshimAsyncLink.swap(this, "/l.php?u=http://get.adobe.com/flashplayer&h=BAQGPRtzv&s=1");" target="_blank"><label class="uiButton uiButtonSpecial" for="u_8nyd6x_0"><input value="Flash Player Yükle" type="button" onclick="this.disabled=true;" id="u_8nyd6x_0" /></label></a></div></div></div></div>";window[swf_id] = swf;swf.write("id_510ab81c13fdf2551166155");} catch (e) {}n return swf;n })();}})","css":["9p1Lg","dgsbM"],"js":["1Y1Q9","TUck3","cn0J1","fR4HR","DGPzS"],"onload":["ge("u879823_18") && CSS.addClass($("u879823_18").parentNode, "exploded");Arbiter.inform("flash/expand_inline");","JSCC.get("j0boToLGIjWW12Apv60")"],"bootloadable":{"ErrorDialog":{"resources":["cn0J1","DGPzS","dgsbM","Zfqw6"],"module":true},"IframeShim":{"resources":["cn0J1","DGPzS","MqSmz"],"module":true},"AsyncDOM":{"resources":["cn0J1","bEufR"],"module":true},"ConfirmationDialog":{"resources":["cn0J1","DGPzS","oE4Do"],"module":true},"Dialog":{"resources":["cn0J1","DGPzS","dgsbM"],"module":true}},"resource_map":{"9p1Lg":{"type":"css","permanent":1,"src":"http://static.ak.fbcdn.net/rsrc.php/v2/ya/r/jJP9hW9Sq3R.css"},"dgsbM":{"type":"css","permanent":1,"src":"http://static.ak.fbcdn.net/rsrc.php/v2/y2/r/7YudOjCpR-0.css"},"1Y1Q9":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/yV/r/3FznI1qwj8f.js"},"TUck3":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/y1/r/65TxRuTqmIx.js"},"cn0J1":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/yL/r/D6JAwHSZDea.js"},"fR4HR":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/yu/r/iNeGtBMFVez.js"},"DGPzS":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/yW/r/kZ3SlT9GzF4.js"},"Zfqw6":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/yY/r/sV3IcioKrvL.js"},"MqSmz":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/yH/r/ghlEJgSKAee.js"},"bEufR":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/yU/r/Ph_PwC0IBpl.js"},"oE4Do":{"type":"js","src":"http://static.ak.fbcdn.net/rsrc.php/v2/yD/r/65c9OW-i481.js"}}}
  • 01-02-2013, 04:04:37
    #2
    json sayfasını file_get_contents kullanarak açıp, bunu bir değişkene atayın,
    $json = file_get_contents("http://r10.net/ornek.html");
    gibi, daha sonra sonucu görmek için json_decode ile çektiğiniz sayfayı çağırın, sayfadaki json kodlar decode edilecek ve \/ işaretleri gibi işaretler normale dönecektir.
    Eğer siz sadece o sitedeki gibi url yi almak istiyorsanız bu aşamadan sonra ekstra işlemler yapılması gerekmektedir.
    print_r(json_decode($json));
    Örnek:http://yazilimyazari.com/r10/jsonornek.php
  • 01-02-2013, 22:41:33
    #3
    yok sorunumu anlamadınız. tüm sayfayı çözmem gerekiyor. wdr.leo vakit ayırmışsınız emeğinize sağlık. teşekkür ederim.
    stackoverflow'a sordum. bir kaç kişi olumsuz tepki verdi. birisi Allah razı olsun çözümü sundu. şu anda silmişler stackoverflow'dan
    ben çok uğraştım eğer muzdarip olan varsa yararlansın:
    $json = urldecode(preg_replace_callback('/(?:\\\\u[0-9a-fA-Z]{4})+/', function ($v) {
        $v = strtr($v[0], array('\\u' => ''));
        return mb_convert_encoding(pack('H*', $v), 'UTF-8', 'UTF-16BE');
    }, $data));