Visualizzazione dei risultati da 1 a 5 su 5

Discussione: include

  1. #1

    include

    ho scaricato uno script per gestire delle news sul sito ma visot che sono ignorante in materia non so dove mettere la riga di codiche che mi danno, ho provato fra i tag <head></head> o fra i tag <body></body>
    ma non si vede nulla... come faccio? grazie mille


    questo è quello che c'e scritto nelle isctruzioni...

    Thank you for downloading Crystal News Editor. Installation is
    simple. All you need to do is edit the "config.php" file and set
    your password along with the other settings. You can leave the
    pre-installed settings alone and use the test password but it is
    recommended that you change the password for your own secruity.
    Next upload the directory "crystaleditor" and its contents. Once
    the files are uploaded CHMOD "news.txt" to 777. Once you have done
    that the program is ready to run. All you have to do is have a ssi
    include or php include pointing to the "news.txt" file. For example
    in the place you want the news to go you would use the line of code
    <?php include("./crystaleditor/news.txt"); ?> to insert the news
    onto your website. As always please email me if you have any
    questions involving the script or if you would just like to say hello.
    If you notify me that your website is using my scripts I will add a
    link to your site from mine. Once again thank you for using my script.

  2. #2
    Chiaramente la pagina in cui inserisci la linea di codice deve essere una pagina php;
    inoltre questa istruzione php <?php include("./crystaleditor/news.txt"); ?>
    cerca il file news.txt nella directory crystaleditor che deve
    essere allo stesso livello dello script.
    Quindi se inserisci correttamente nel body l'istruzione non dovresti avere problemi.

    Ciao
    In a world without walls and fences - who needs windows and gates ?

  3. #3
    deve essere una pagina php
    non posso farlo con l'html?
    c'è un escamotage? (che chiaramente dovrete costruirmi perche sono incompetente in materia...)
    per il percorso del file avevo provveduto già a modificare..
    grazie


    nel frattempo ho cambiato estensione al file e il tutto funziona...

    da .html sono passato a .php... :maLOL:

  4. #4

    re..

    prova con questo html..
    non ti assicuro che funzioni, però le mie statistiche del sito vengobo richiamate così senza bisogno del php..

    [img]indeirizzo/file.php[/img]

    in pratica richiami un'immagine..

    ilmio script è questo (per intero) ma non assicuro..


    <script language="JavaScript">
    var ref=""+escape(top.document.referrer); var colord = window.screen.colorDepth;
    var res = window.screen.width + "x" + window.screen.height;
    document.write("[img]ind/file.php?referer=" + ref + "&color=" + colord + "&res=" + res + "[/img]");
    </script><noscript>[img]ind/file.php[/img]</noscript>
    visit the BEST italian fotolog http://www.ghiacciato.it/fotolog

    "Solo due cose sono infinite, l'universo e la stupidità dell'essere umano.. ma sulla prima ho ancora delle riserve.." A.Einstein

  5. #5
    avevo già combinato grazie lo stesso!!
    il mio sito dedicato agli scooter

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.