Calling A PHP File And Put It in Another PHP File? [PHPNuke]

  • cloud^77
  • Novice
  • Novice
  • User avatar
  • Joined: Oct 12, 2003
  • Posts: 20
  • Status: Offline

Post October 12th, 2003, 6:48 pm

Hallo

I am new here. :)

Anyone know how to calling a php file so it would show up in another php file?

Thanks.

***Edit***
Forgot to mention that, I would like it be display in the PHPNuke block. :D
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. ?>


What I know is that, I can just use the iframe but is there any other way?

Thanks again. :D
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 12th, 2003, 6:48 pm

  • cloud^77
  • Novice
  • Novice
  • User avatar
  • Joined: Oct 12, 2003
  • Posts: 20
  • Status: Offline

Post October 12th, 2003, 8:04 pm

Something wrong with my above post? :shock:

heheheh... :D
  • cloud^77
  • Novice
  • Novice
  • User avatar
  • Joined: Oct 12, 2003
  • Posts: 20
  • Status: Offline

Post October 13th, 2003, 5:08 pm

Okay, I have found it myself. Just forget about my above posts.
Just with a simple "include" will do actually.

:D :o :D
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post October 13th, 2003, 5:45 pm

Sorry -- I wanted to tell you that earlier today, but until Unflux fixed the post I couldn't, and didn't get back to it until just now. 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
  • User avatar
  • Joined: Oct 12, 2003
  • Posts: 20
  • Status: Offline

Post October 14th, 2003, 6:07 am

hehehe...thanks anyway.. :lol:

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 86 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.