Kodları lütfen aşağıdaki butonları kullanarak renklendirin. Örnek: <php> echo "Selam Dünya"; </php>
Yardım
karakter kaldı

API'nin Jason çıktısını nasıl değişkene atayabilirim?

Arkadaşlar a.php gibi bir dosyanın json çıktısından nasıl veri çekebilirim acaba. Aşağıdaki sonuçta foreach ile çekmeye çalıştım ama olmadı.
stdClass Object
(
    [permalink] => https://www.virustotal.com/url/cf4b367e49bf0b22041c6f065f4aa19f3cfe39c8d5abc0617343d1a66c6a26f5/analysis/1451928311/
    [resource] => google.com
    [url] => http://google.com/
    [response_code] => 1
    [scan_date] => 2016-01-04 17:25:11
    [scan_id] => cf4b367e49bf0b22041c6f065f4aa19f3cfe39c8d5abc0617343d1a66c6a26f5-1451928311
    [verbose_msg] => Scan finished, scan information embedded in this object
    [filescan_id] => 
    [positives] => 1
    [total] => 66
    [scans] => stdClass Object
        (
            [CLEAN MX] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Rising] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [OpenPhish] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [VX Vault] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [ZDB Zeus] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [AutoShun] => stdClass Object
                (
                    [detected] => 
                    [result] => unrated site
                )

            [ZCloudsec] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [PhishLabs] => stdClass Object
                (
                    [detected] => 
                    [result] => unrated site
                )

            [Zerofox] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [K7AntiVirus] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [SecureBrain] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Quttera] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [AegisLab WebGuard] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [MalwareDomainList] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                    [detail] => http://www.malwaredomainlist.com/mdl.php?search=google.com
                )

            [ZeusTracker] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                    [detail] => https://zeustracker.abuse.ch/monitor.php?host=google.com
                )

            [zvelo] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Google Safebrowsing] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [FraudScore] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Kaspersky] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [BitDefender] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Opera] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [G-Data] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [C-SIRT] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [CyberCrime] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Websense ThreatSeeker] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [MalwarePatrol] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Webutation] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Trustwave] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Web Security Guard] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [ADMINUSLabs] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Malwarebytes hpHosts] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Dr.Web] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [AlienVault] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Emsisoft] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Malc0de Database] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                    [detail] => http://malc0de.com/database/index.php?search=google.com
                )

            [SpyEyeTracker] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                    [detail] => https://spyeyetracker.abuse.ch/monitor.php?host=google.com
                )

            [malwares.com URL checker] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Phishtank] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [CloudStat] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Malwared] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Avira] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [StopBadware] => stdClass Object
                (
                    [detected] => 
                    [result] => unrated site
                )

            [Antiy-AVL] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [SCUMWARE.org] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [FraudSense] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Comodo Site Inspector] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Malekal] => stdClass Object
                (
                    [detected] => 1
                    [result] => malware site
                )

            [ESET] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Sophos] => stdClass Object
                (
                    [detected] => 
                    [result] => unrated site
                )

            [Yandex Safebrowsing] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                    [detail] => http://yandex.com/infected?l10n=en&url=http://google.com/
                )

            [Spam404] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Nucleon] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Malware Domain Blocklist] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Blueliv] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Netcraft] => stdClass Object
                (
                    [detected] => 
                    [result] => unrated site
                )

            [PalevoTracker] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [CRDF] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [ThreatHive] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [ParetoLogic] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Tencent] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [URLQuery] => stdClass Object
                (
                    [detected] => 
                    [result] => unrated site
                )

            [Sucuri SiteCheck] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Wepawet] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Fortinet] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [ZeroCERT] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

            [Baidu-International] => stdClass Object
                (
                    [detected] => 
                    [result] => clean site
                )

        )

)


Yapmak istediğim şey foreach ile yukarıdaki anahtar ve değeri değişkenlere alıp sayfama çekmek.
+0
-0
Cevaba KatılıyorumKatılmıyorum
Cevap Yaz Yorum Yaz Arşivime Ekle Takip Et

Cevaplar

Hiç cevap bulunamadı. İlk cevabı siz yazın.