2 Replies - 339 Views - Last Post: 23 September 2012 - 05:29 AM Rate Topic: -----

#1 Scrach  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 03-February 12

How can i stop a PHP file from redirecting?

Posted 23 September 2012 - 05:06 AM

Okay so i have a PHP page that when you log on to my game it takes you to that page but when you are on the page it loads for around a second (and shows every image and link) then redirects to my hosts default 404 landing page.

Any help?

Other details: Whilst it is loading for the said second if i click on another link within the game it will take me to the link and then not redirect but it is still connected to the same PHP file.
E.G

www.game.com/logged_in.php < Redirects > I click on my profile on my game and it stays fine but it has the same url >
www.game.com/logged_in.php < Hope this helps <

Is This A Good Question/Topic? 0
  • +

Replies To: How can i stop a PHP file from redirecting?

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 5960
  • View blog
  • Posts: 23,235
  • Joined: 23-August 08

Re: How can i stop a PHP file from redirecting?

Posted 23 September 2012 - 05:23 AM

Don't understand the question. Show the code, in code tags, and it might make more sense.

:code:
Was This Post Helpful? 0
  • +
  • -

#3 Scrach  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 03-February 12

Re: How can i stop a PHP file from redirecting?

Posted 23 September 2012 - 05:29 AM

<?

include "config.php";

include "func.ban.php";

checkban($_SERVER['REMOTE_ADDR']);

?>

<?

session_start();

include_once "includes/db_connect.php";

include_once "includes/functions.php";



logincheck();

?>



<html>

<head>

<link rel="shortcut icon" href="favicon.ico.png">
<title>Untitled Project</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link rel=stylesheet href=includes/in.css type=text/css>

</head>

<frameset rows="*" cols="168,*" frameborder="no" border="0" framespacing="0">

<frame src="menu.php" name="leftFrame" scrolling="auto" noresize="noresize" id="leftFrame" title="leftFrame">


<? if($info->bann == "0"){ ?>
<frameset rows="68,*" cols="*" framespacing="0" frameborder="no" border="0">

<frame src="banner.php" name="banner" scrolling="No" noresize="noresize" id="topFrame" title="topFrame">
<? } ?>


<frameset rows="24,*"  cols="*" framespacing="0" frameborder="NO" border="0">

<frame src="mini.php" name="topFrame" scrolling="NO" noresize >









<frameset rows="*" cols="*<? if($info->box == "0"){ ?>,180<? } ?>" frameborder="no" border="0" framespacing="0">

<frame src="news.php" name="middle" id="mainFrame" title="mainFrame">
<? if($info->box == "0"){ ?>
<frame src="/chat/index.php" name="shoutbox" scrolling="auto" noresize="noresize" id="shoutbox" title="shoutbox">

<? } ?>







</frameset>

</frameset>

</frameset>

</frameset>

<noframes><body></frameset>

</body></noframes>

</html>


That is the PHP file the error is based around :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1