Appeler un fichier PHP et le mettre dans un autre fichier PHP? [PHPNuke]

  • cloud^77
  • Novice
  • Novice
  • Avatar de l’utilisateur
  • Inscription: Oct 12, 2003
  • Messages: 20
  • Status: Offline

Message Octobre 12th, 2003, 6:48 pm



Je suis nouveau ici. :)

N'importe qui savent comment appeler un fichier php de sorte qu'il ne serait effectué dans un autre fichier php?

Merci.

*** EDIT ***
J'ai oublié de mentionner que, je voudrais qu'il soit afficher dans le bloc de PHPNuke. gif "alt =": D "title =" très heureux "/>
Code: [ Select ]
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                     */
/* ===========================                     */
/*                                   */
/* Copyright (c) 2002 by Francisco Burzi                */
/* http://phpnuke.org                          */
/*                                   */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.    */
/************************************************************************/

if (eregi("block-Sample_Block.php",$_SERVER['PHP_SELF'])) {
  Header("Location: index.php");
  die();
}

$content = "Here goes the content you want in your new block";

?>
  1. <?php
  2. /************************************************************************/
  3. /* PHP-NUKE: Web Portal System                     */
  4. /* ===========================                     */
  5. /*                                   */
  6. /* Copyright (c) 2002 by Francisco Burzi                */
  7. /* http://phpnuke.org                          */
  8. /*                                   */
  9. /* This program is free software. You can redistribute it and/or modify */
  10. /* it under the terms of the GNU General Public License as published by */
  11. /* the Free Software Foundation; either version 2 of the License.    */
  12. /************************************************************************/
  13. if (eregi("block-Sample_Block.php",$_SERVER['PHP_SELF'])) {
  14.   Header("Location: index.php");
  15.   die();
  16. }
  17. $content = "Here goes the content you want in your new block";
  18. ?>


Ce que je sais, c'est que, je peux simplement utiliser l'iframe mais est-il un autre moyen?

Merci encore. :D
  • Anonymous
  • Bot
  • No Avatar
  • Inscription: 25 Feb 2008
  • Messages: ?
  • Loc: Ozzuland
  • Status: Online

Message Octobre 12th, 2003, 6:48 pm

  • cloud^77
  • Novice
  • Novice
  • Avatar de l’utilisateur
  • Inscription: Oct 12, 2003
  • Messages: 20
  • Status: Offline

Message Octobre 12th, 2003, 8:04 pm

Quelque chose ne va pas au-dessus de mon post? :shock:

heheheh...:D
  • cloud^77
  • Novice
  • Novice
  • Avatar de l’utilisateur
  • Inscription: Oct 12, 2003
  • Messages: 20
  • Status: Offline

Message Octobre 13th, 2003, 5:08 pm

Bon, j'ai trouvé moi-même. Juste oublier mes postes ci-dessus.
Juste avec un simple "include" le fera effectivement.

:D:o:D
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • Avatar de l’utilisateur
  • Inscription: Mai 28, 2003
  • Messages: 23407
  • Loc: Woodbridge VA
  • Status: Offline

Message Octobre 13th, 2003, 5:45 pm

Désolé - Je voulais vous dire que plus tôt aujourd'hui, mais jusqu'à ce que le poste fixe Unflux je ne pouvais pas, et n'a pas à se remettre jusqu'à ce que tout à l'heure. Glad you got it.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • cloud^77
  • Novice
  • Novice
  • Avatar de l’utilisateur
  • Inscription: Oct 12, 2003
  • Messages: 20
  • Status: Offline

Message Octobre 14th, 2003, 6:07 am

hehehe...merci quand même .. :lol:

Afficher de l'information

  • Total des messages de ce sujet: 5 messages
  • Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 164 invités
  • Vous ne pouvez pas poster de nouveaux sujets
  • Vous ne pouvez pas répondre aux sujets
  • Vous ne pouvez pas éditer vos messages
  • Vous ne pouvez pas supprimer vos messages
  • Vous ne pouvez pas joindre des fichiers
 
 

© 2011 Unmelted, LLC. Ozzu® est une marque déposée de Unmelted, LLC