Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 14 su 14

Discussione: includere php in html

  1. #11
    Originariamente inviato da uilloc
    Ma la cosa veramente si complica, io mi chiedo solo come fa lui ad inserirlo nell'html, nelle sue pagine non esiste una riga di php.
    Stai facendo un errore basilare. NON puoi vedere sei nelle use pagine c'è o meno del codice PHP perchè il web server le interpreta PRIMA di inviartele.

  2. #12
    Utente di HTML.it
    Registrato dal
    Feb 2008
    Messaggi
    143
    http://www.scriptsmill.com/

    le pagine sono in html almeno credo al 90%...

    Il fatto è che lui ha modificto delle variabili nel php dello script, le mie url e le sue sono diverse in admin

    sue:
    http://www.scriptsmill.com/comments/admin.php

    mie:
    /dir/storie/01_master/cod01.php (1)

    a lui php aggancia la pagina html praticamente, e come cavolo fa?

    Sono 3 giorni che sono su qyuesto cavolo di script senza venirne a capo azz.

    Per favore aiutatemi sto script mi serve...

  3. #13
    Originariamente inviato da uilloc
    a lui php aggancia la pagina html praticamente, e come cavolo fa?
    A questa domanda ti ho risposto nel primo messaggio: "In alternativa, chiedi al fornitore di hosting se configura il web server in modo da far interpretare i file .htm/.html dal motore del PHP."

  4. #14
    Utente di HTML.it
    Registrato dal
    Feb 2008
    Messaggi
    143
    questo il su readme una cosa inguardabile azz:

    How to use
    To show the comments on a page copy and paste the following code:
    If your site uses php:
    <?php require("/path/to/your/www-home/comments/comments.php"); ?>
    OR
    <?php virtual("/comments/comments.php"); ?>
    (doesn't work on some server configurations)
    You can find out what is path to your www-home with code like that:
    <?php echo dirname(__FILE__); ?>
    DO NOT use this script like that: require("http://yoursite.com/comments/comments.php").
    In this case you'll get the same comments for all your pages.
    If your site uses SSI:

    If your site uses ASP:

    (not tested)
    The script recognizes itself the page where it is included and displays comments for this page.
    You can create your own templates in "./templates" folder or edit existing files to customize
    appearance of the comments. You can find several language files in "./lang" folder and you can
    create your own language file there. Don't forget to edit "config.php" in order to use your
    tempalte or language file. Please send me your templates and language files to info@scriptsmill.com,
    I will include them to the packadge.
    ================================================== ======================

    For support and new versions please visit http://www.scriptsmill.com/

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.