Visualizzazione dei risultati da 1 a 6 su 6

Discussione: Return e include

  1. #1

    Return e include

    Ho una funzione che come return ha il codice di una pagina web...devo metterci un include...come faccio?

    return
    " <body>
    include (menu.php);
    ";

    tipo così...mi servirebbe la sintassi giusta.

    Grazie.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  2. #2
    return " <body>".implode('',file(http://www.tuosito.it/tuadir/menu.php));


    chiaramente una richiesta http è MOLTO + lenta di un include

  3. #3
    se poi devo continuare ad aggiungere codice funziona?

    es.

    return
    "<body>".
    implode('',file(http://www.tuosito.it/tuadir/menu.php));
    ."</body>";
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  4. #4
    up
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  5. #5
    reup.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  6. #6

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.