View previous topic :: View next topic |
Author |
Message |
septembersky
Joined: 19 Nov 2004 Posts: 6
|
Posted: Mon Dec 13, 2004 11:33 pm Post subject: PHP includes b2archives.php |
|
|
I'm trying to make a seperate page, and include b2archives into it. But it's not working. This is what it looks like:
Code: | <HTML>
<HEAD>
<link rel="stylesheet" href="style.css" type="text/css">
<TITLE>//out-of-context.org// three.</TITLE>
</HEAD>
<body>
<div id="header">
<?php include ("/home/crazyc5/public_html/header.php"); ?>
</div>
<div id="content">
<?php include("/home/crazyc5/public_html/b2/b2archives.php"); ?>
</div>
<div id="sidebar" style="position:absolute; top:325px; left:395px;>
<?php include ("sidebar.php"); ?>
</div>
</body>
</html> |
And then I get this error: Warning: main(./b2-include/b2functions.php): failed to open stream: No such file or directory in /home/crazyc5/public_html/b2/b2archives.php on line 6
Fatal error: main(): Failed opening required './b2-include/b2functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/crazyc5/public_html/b2/b2archives.php on line 6
Help me please? |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1278 Location: Oregon
|
Posted: Tue Dec 14, 2004 1:33 am Post subject: |
|
|
Confirm that "b2-include/b2functions.php" exists. _________________ Michael P.
 |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 826 Location: Oslo, Norway
|
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1278 Location: Oregon
|
Posted: Tue Dec 14, 2004 8:01 pm Post subject: |
|
|
Sigg3 wrote: | Don't you need to include the functions _at the top of the page_ or is it just me? |
Nope. That's only for functions like setcookie(). _________________ Michael P.
 |
|
Back to top |
|
 |
septembersky
Joined: 19 Nov 2004 Posts: 6
|
Posted: Tue Dec 14, 2004 8:52 pm Post subject: |
|
|
Cyberian75 wrote: | Confirm that "b2-include/b2functions.php" exists. |
It's there. Still don't know what's wrong though. |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1278 Location: Oregon
|
Posted: Thu Dec 16, 2004 2:24 am Post subject: |
|
|
Try using a full URL instead of a server path in the include. _________________ Michael P.
 |
|
Back to top |
|
 |
|