Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,463 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,391 people online right now. Registration is fast and FREE... Join Now!




PHP and frames

 
Reply to this topicStart new topic

PHP and frames, Integrating a message board with frames

FernFerret
post 16 Apr, 2005 - 02:51 PM
Post #1


New D.I.C Head

*
Joined: 14 Apr, 2005
Posts: 25


My Contributions


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)
CODE
<?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
User is offlineProfile CardPM

Go to the top of the page

cyberscribe
post 16 Apr, 2005 - 09:12 PM
Post #2


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


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.
User is offlineProfile CardPM

Go to the top of the page

FernFerret
post 17 Apr, 2005 - 02:09 PM
Post #3


New D.I.C Head

*
Joined: 14 Apr, 2005
Posts: 25


My Contributions


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
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 01:28PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month