Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
devo
New Member
New Member


Joined: Oct 02, 2003
Posts: 23

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

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: 17086

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

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
devo
PostPosted: Tue Dec 02, 2003 11:20 pm Reply with quote

It is stand alone yes..... thanks for that I will have a go now and see.
Cool
 
devo
PostPosted: Wed Dec 03, 2003 12:58 am Reply with quote

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
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©