News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SSI problem

Started by webm0nster, December 09, 2004, 06:34:31 PM

Previous topic - Next topic

webm0nster

When trying to include functions from the SSI.php I am getting

PHP Fatal error:  Call to undefined function:  db_query()
in /usr/local/www/data/members/board/SSI.php on line 533

I am loading both smf_api.php and SSI.php like so first thing in the file -


<?php
require('board/smf_api.php');
require(
'board/SSI.php');
smf_authenticateUser();
if (
$smf_user_info['is_guest']){
$authFailed 'http://members.geok.org/index.php';
header("Location: $authFailed");
}


It may be a permission error but I can not find it. And since everything is "required" I would expect to see a file not found type error before a undefined function error.

I am running RC2.

Thanks for any help!

"Imagination is more important than knowledge."
 - Albert Einstien

webm0nster

Found my own answer - call SSI.php first!

Thanks anyway...

"Imagination is more important than knowledge."
 - Albert Einstien

Advertisement: