Current location: Hot Scripts Forums » Programming Languages » PHP » PHP include not working

PHP include not working

 
Prev Previous Post   Next Post Next
  #1  
Old 11-04-09, 03:24 AM
connor connor is offline
Wannabe Coder
 
Join Date: Apr 2005
Location: Whiteman AFB, Mo
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
PHP include not working

So, I have been looking at this for about 30 mins now and can't seem to get it to work, any ideas?

-- login.php --
PHP Code:
<?PHP
define
("__PORTAL"true); //Defining the key.
include "includes/header.php";
?>
<!-- Login Script Here -->
<?PHP
define
("__PORTAL"true); //Defining the key.
require "includes/footer.php";
?>
-- includes/header.php --
PHP Code:
<?PHP
defined
("__PORTAL") or die();
define("__PORTAL"true);
include 
"../config.php";
?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title><?=$SITE['__NAME'];?> - Customer Portal</title>
    <!--<link rel="shortcut icon" href="favicon.ico">-->
    <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="../lib/ext/resources/css/ext-all.css">
    <link rel="stylesheet" type="text/css" href="../theme/<?=$CONF['theme'];?>/style.css">
    <!-- GC -->
     <!-- LIBS -->
     <script type="text/javascript" src="../lib/ext/adapter/ext/ext-base.<acronym title="JavaScript">js</acronym>"></script>
    <script type="text/javascript" src="../lib/ext/adapter/ext/ext-all.<acronym title="JavaScript">js</acronym>"></script>
     <!-- ENDLIBS -->
    <script type="text/javascript" src="../lib/ext/ext-all-debug.<acronym title="JavaScript">js</acronym>"></script>
    <!-- CUSTOM -->
</head>
<body scroll="no" bgcolor="#B7BBBE">
-- includes/footer.php --
PHP Code:
<?PHP
defined
("__PORTAL") or die();
define("__PORTAL"true);
include 
"../config.php";
?>
</body>
</html>
Now when I take away the defined() on the header and footer I can get to the specific pages just fine, but when I go to login.php it all just "dies."
__________________
Connor Strandt
Soldiers Network
(Involved in lots of projects look for our name everywhere)
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP with HTML not working? unseenmortal PHP 12 04-20-08 05:21 PM
Include HTML into PHP page jumbo1 PHP 3 03-11-08 06:39 PM
PHP templete not working??? theoffseason PHP 0 02-12-06 08:34 AM
Css and php not working together homeboy PHP 0 12-23-05 05:28 PM
hai include php in javascript ashok JavaScript 4 07-13-05 02:50 PM


All times are GMT -5. The time now is 09:29 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 (Unregistered)