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

    serverspy.net da html a php

    Ho fatto un sito in PHP-NUKE, ma per mettere delle statistiche del server ho scaricato un codice html, ma mi serve in PHP

    Potete "tradurlo"?
    codice:
    <TABLE align="center" cellpadding="10">
    <TR><TD valign="top">
    
    
    <!-- NOTE:
    This first segment of code is only for the server monitor itself. 
    If you want to include the server usage graphs, then scroll down to 
    the marked code.
    -->
    
    <SCRIPT LANGUAGE="JavaScript" 
    SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=73539">
    </SCRIPT>
    
    
    
    
    
    </TD><TD align="center" valign="top">
    <!-- NOTE:
    Use the image URL's below. You can arrange them anywhere on your site. 
    Most users like to present these along side their main server monitor.
    -->
    
    
    
    
    
    
    
    
    <!-- NOTE:
    Use these image URL's below. You can arrange them anywhere on your site. 
    Most users like to present these along side their main server monitor.
    -->
    
    
    I'm sorry, only Exclusive Subscribers have access to the Usage Stats.
    
    
    
    </TD></TR></TABLE>
    Grazie in anticipo!!!
    P.S.otete escludere i vari messaggi specie <!--NOTE ecc...

  2. #2

    Re: serverspy.net da html a php

    Originariamente inviato da guicar0
    Ho fatto un sito in PHP-NUKE, ma per mettere delle statistiche del server ho scaricato un codice html, ma mi serve in PHP

    Potete "tradurlo"?
    codice:
    <TABLE align="center" cellpadding="10">
    <TR><TD valign="top">
    
    
    <!-- NOTE:
    This first segment of code is only for the server monitor itself. 
    If you want to include the server usage graphs, then scroll down to 
    the marked code.
    -->
    
    <SCRIPT LANGUAGE="JavaScript" 
    SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=73539">
    </SCRIPT>
    
    
    
    
    
    </TD><TD align="center" valign="top">
    <!-- NOTE:
    Use the image URL's below. You can arrange them anywhere on your site. 
    Most users like to present these along side their main server monitor.
    -->
    
    
    
    
    
    
    
    
    <!-- NOTE:
    Use these image URL's below. You can arrange them anywhere on your site. 
    Most users like to present these along side their main server monitor.
    -->
    
    
    I'm sorry, only Exclusive Subscribers have access to the Usage Stats.
    
    
    
    </TD></TR></TABLE>
    Grazie in anticipo!!!
    P.S.otete escludere i vari messaggi specie <!--NOTE ecc...
    Ehm....Non è possibile passare il codice da html a PHP?

  3. #3
    Prova questo:

    <?php

    echo"<TABLE align=\"center\" cellpadding=\"10\">"
    . "<TR><TD valign=\"top\">"
    . ""
    . ""
    . "<!-- NOTE:"
    . "This first segment of code is only for the server monitor itself. "
    . "If you want to include the server usage graphs, then scroll down to "
    . "the marked code."
    . "-->"
    . ""
    . "<SCRIPT LANGUAGE=\"JavaScript\" "
    . "SRC=\"http://share1.serverspy.net/cgi-bin/monitor.js?mid=73539\">"
    . "</SCRIPT>"
    . ""
    . ""
    . ""
    . ""
    . ""
    . "</TD><TD align=\"center\" valign=\"top\">"
    . "<!-- NOTE:"
    . "Use the image URL's below. You can arrange them anywhere on your site. "
    . "Most users like to present these along side their main server monitor."
    . "-->"
    . ""
    . "<A HREF=\"http://www.serverspy.net/site/serverranks/\"><img src=\"http://www.serverspy.net/bin/srank.mpl?a=83.103.59.8:28000\" width=\"120\" height=\"100\" border=\"0\"></A>
    "
    . ""
    . ""
    . ""
    . ""
    . ""
    . "<!-- NOTE:"
    . "Use these image URL's below. You can arrange them anywhere on your site. "
    . "Most users like to present these along side their main server monitor."
    . "-->"
    . ""
    . "
    I'm sorry, only <A HREF=\"http://www.serverspy.net/site/subscribe/\">Exclusive Subscribers</A> have access to the Usage Stats."
    . ""
    . ""
    . ""
    . "</TD></TR></TABLE>"
    ."";

    ?>

    Fammi sapere
    Ciao

  4. #4
    mha, per mio parere basterebbe fare così:
    Codice PHP:
    <?
    ...codice php...
    ?>

    CODICE HTML

    <?

    ...restante codice php...

    ?>
    Il 90% dei problemi di un pc si trova
    tra la tastiera e la sedia.

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.