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

  • cloud^77
  • Novice
  • Novice
  • User avatar
  • Posts: 20

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • cloud^77
  • Novice
  • Novice
  • User avatar
  • Posts: 20

Post 3+ Months Ago

Something wrong with my above post? :shock:

heheheh... :D
  • cloud^77
  • Novice
  • Novice
  • User avatar
  • Posts: 20

Post 3+ Months Ago

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
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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.
  • cloud^77
  • Novice
  • Novice
  • User avatar
  • Posts: 20

Post 3+ Months Ago

hehehe...thanks anyway.. :lol:

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: Bigwebmaster and 66 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.