Including MyFAQ

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
Jos
Posts: 5
Joined: Wed Nov 18, 2009 6:29 pm

Including MyFAQ

Post by Jos » Wed Nov 18, 2009 6:33 pm

Hi there,

I'n trying to include the index of MyFAQ into my own website but it's working right now.
In the folder /website/ there is a file faq.php which is trying to include the myFAQ index between the header and footer. The myFAQ script is in the folder /website/faq/

Unfortunately I only see a white page included.. Any ideas what to do?

Thanks!
Jos

Thorsten
Posts: 14718
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Including MyFAQ

Post by Thorsten » Wed Nov 18, 2009 9:41 pm

Hi,

a white page is a PHP fatal error... so I think you did something wrong. Do you have any error messages in your error log?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Jos
Posts: 5
Joined: Wed Nov 18, 2009 6:29 pm

Re: Including MyFAQ

Post by Jos » Wed Nov 18, 2009 10:23 pm

Unfortunately I can't look into any logfile..

This is the code I'm using...

Code: Select all

//page
require(CLIENTINC_DIR.'header.inc.php');?>
<?php 
include ($_SERVER['DOCUMENT_ROOT']."faq/index.php"); 
?>
<?require(CLIENTINC_DIR.'footer.inc.php');?>
When I'm opening this file it shows the header and footer but nothing within it..

MM strange?

Post Reply