PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
devo
New Member
New Member


Joined: Oct 02, 2003
Posts: 23

PostPosted: Tue Dec 02, 2003 8:55 pm Reply with quote Back to top

I am trying to get "page.html" page to load into a new window

this:


Quote:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
if (!isset($mainfile)) { include("mainfile.php"); }
$module_name = basename(dirname(__FILE__));
$index = 0;
include("header.php");

include("page.html");

include("footer.php");
?>

?>


of course loads it into the existing window, I want to launch a new window instead, how please?

TIA
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Dec 02, 2003 9:50 pm Reply with quote Back to top

Assuming that page.html is a stand alone document that does not need PHP, try this
Code:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
echo "<script>window.open(\"/nuke/html/modules/MODULENAME/page.html\",\"\");history.go(-1);</script>";
?>
Adjust the path, of course, for your web url.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
devo
New Member
New Member


Joined: Oct 02, 2003
Posts: 23

PostPosted: Tue Dec 02, 2003 11:20 pm Reply with quote Back to top

It is stand alone yes..... thanks for that I will have a go now and see.
Cool
View user's profile Send private message
devo
New Member
New Member


Joined: Oct 02, 2003
Posts: 23

PostPosted: Wed Dec 03, 2003 12:58 am Reply with quote Back to top

Raven wrote:
Assuming that page.html is a stand alone document that does not need PHP, try this
Code:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
echo "<script>window.open(\"/nuke/html/modules/MODULENAME/page.html\",\"\");history.go(-1);</script>";
?>
Adjust the path, of course, for your web url.


PERFECT.....thank you so much sir...... Laughing
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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 vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum