PHP and frames

Integrating a message board with frames

Page 1 of 1

2 Replies - 1661 Views - Last Post: 17 April 2005 - 03:09 PM Rate Topic: -----

#1 FernFerret  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 14-April 05

PHP and frames

Posted 16 April 2005 - 03:51 PM

Hi, I am working on a website, and have integrated frames. the Forums are also linked with coppermine photo gallery. In certain instances, the forums will open with no frames. here is the code that I think is causing the problem (the redirect page)
<?php 
if (!$_SERVER['HTTP_HOST']) { 
  $cpg_host=$HTTP_SERVER_VARS['HTTP_HOST']; 
} else { 
  $cpg_host=$_SERVER['HTTP_HOST']; 
} 
$cpg_path='/photos'; 
header("Location: http://".$cpg_host.$cpg_path); 

exit; 
?>


I am VERY new to php, so I need to tell it to open the page in the frame "main" or in _self

You may see the problem here:
http://www.homesteadwrestlingclub.com/
Username: Test1
Login: 1234

Thanks in advance
Eric

Is This A Good Question/Topic? 0
  • +

Replies To: PHP and frames

#2 cyberscribe  Icon User is offline

  • humble.genius
  • member icon

Reputation: 10
  • View blog
  • Posts: 1,062
  • Joined: 05-May 02

Re: PHP and frames

Posted 16 April 2005 - 10:12 PM

Couldn't log in. Basically it sounds like your redirect page is affecting the root context of the browser, instead of the subframe. This only happens if the page loads in the root conext, however. So -- either make sure the link to that redirect loads up in the subframe, or rework the redirect so it goes to a page that is also in frames.

Also, you might consider a forum other than phpBB. The security issues have been pretty consistent. If you do stick with phpBB, be sure to read the forums and subscribe to the PHPSec mailing list so you can patch it up when security problems are discovered.
Was This Post Helpful? 0
  • +
  • -

#3 FernFerret  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 14-April 05

Re: PHP and frames

Posted 17 April 2005 - 03:09 PM

Oh I forgot to post it here. I found it. It was in a .tpl file. What forums would you suggest?
(Your Top 5?) I'm very open, but my favie WAS IPB... Needs to be free
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1