Visualizzazione dei risultati da 1 a 7 su 7
  1. #1

    [PHP-XML]Esportare dati analytics

    Salve a tutti. Vorrei esportare e rendere visibili alcuni dei dati fornitimi da google analytics sul mio sito, in modo dinamico cioè che si aggiornano continuamente e non devo ogni volta esportare e caricare il file. Il problema è che il foglio che google mi da è xml ed io non ci ho mai lavorato.

    Da dove comincio? in pratica nel file php devo richiamare l'xml e farlo stampare correttamente.
    Mi sono subito reso conto che includendo solamente il file mi compare il sorgente e basta.


    grazie a tutti
    sciao
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  2. #2
    Ciao.
    Ad occhio ti conviene utilizzare Ajax .

    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  3. #3
    Originariamente inviato da whisher
    Ciao.
    Ad occhio ti conviene utilizzare Ajax .

    Naturalmente dopo aver o stampato o
    incluso il file xml nel tuo sito o utilizzando
    questo

    Se sei su php5 con le Dom functions
    è una passeggiata.


    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  4. #4
    il primo problema sta proprio nello stampare l'xml...
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  5. #5
    Se sei su Php5 qui due righe
    di codice !

    se no con le normali funzioni fopen .........
    devi avere allow_url_fopen abilitato
    e sempre se Google te lo lascia fare




    PS.
    Se sei su php5 puo benissimo utilizzare
    il Dom (php) senza utilizzare ajax.
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  6. #6
    mi sa che ancora non ho capito come si stampano sti benedetti xml.

    non sono su php5


    Codice PHP:
    <?php

    $handle 
    fopen("Analytics_GeoMapReport.xml""r");


    ?>

    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  7. #7
    Originariamente inviato da Manuelandro
    mi sa che ancora non ho capito come si stampano sti benedetti xml.

    non sono su php5


    Codice PHP:
    <?php
    $handle 
    fopen("Analytics_GeoMapReport.xml""r");


    ?>




    Così dovresti avere il file sul tuo server
    lo devi importare da Google quindi sarà
    una cosa del genere (faccio un esempio)
    Codice PHP:
    <?php

    $handle 
    fopen("http://www.google.com/analytics/Analytics_GeoMapReport.xml""r");

    ?>


    PS
    Un file xml non è altro che un file
    poi parsarlo è un'altra storia
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.