boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PHP includes b2archives.php

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
septembersky



Joined: 19 Nov 2004
Posts: 6

PostPosted: Mon Dec 13, 2004 11:33 pm    Post subject: PHP includes b2archives.php Reply with quote

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
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 1278
Location: Oregon

PostPosted: Tue Dec 14, 2004 1:33 am    Post subject: Reply with quote

Confirm that "b2-include/b2functions.php" exists.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Sigg3



Joined: 03 Jul 2003
Posts: 826
Location: Oslo, Norway

PostPosted: Tue Dec 14, 2004 9:12 am    Post subject: Reply with quote

Don't you need to include the functions _at the top of the page_ or is it just me?
_________________
Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cyberian75



Joined: 26 Sep 2002
Posts: 1278
Location: Oregon

PostPosted: Tue Dec 14, 2004 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
septembersky



Joined: 19 Nov 2004
Posts: 6

PostPosted: Tue Dec 14, 2004 8:52 pm    Post subject: Reply with quote

Cyberian75 wrote:
Confirm that "b2-include/b2functions.php" exists.


It's there. Still don't know what's wrong though.
Back to top
View user's profile Send private message
Cyberian75



Joined: 26 Sep 2002
Posts: 1278
Location: Oregon

PostPosted: Thu Dec 16, 2004 2:24 am    Post subject: Reply with quote

Try using a full URL instead of a server path in the include.
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group