URGENT PHP HELP !!!!!!!
Posted: Sat Jan 06, 2007 1:57 pm
feyd | Please use
I have uploaded ADODB files onto the web server, but I still get the error. Should I put them into the public_html folder. Below is my index.php code and my conf.main.php code.
index.php
conf.main.php

feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello all,
I need help with these error messages below.Code: Select all
Warning: require_once(adodb/adodb.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/microfix/conf/conf.main.php on line 12
Fatal error: require_once() [function.require]: Failed opening required 'adodb/adodb.inc.php' (include_path='.:/usr/lib/php') in /home/microfix/conf/conf.main.php on line 12index.php
Code: Select all
<?php
/**
* This file serves as the home page for the public website
*
* @package Web
* @subpackage Public
*/
ob_start();
session_start();
/* Include configuration file */
require_once('../conf/conf.main.php');
/* Force browser out of SSL for non-secure pages */
assertSSL(false);
$page_tpl = new XiTemplate($CONFIG['paths']['templates'].'/index.tpl');
configureTemplate($page_tpl, $CONFIG);
require_once($CONFIG['paths']['classes'].'/class.WebPage.php');
$page = new WebPage($db, $page_tpl);
$page->setUrlText(getUrlText());
$page->load(WebPage::URL_TEXT);
if (!$page->isHome() && file_exists($CONFIG['paths']['templates'].'/inner.tpl'))
$page_tpl->setTemplate($CONFIG['paths']['templates'].'/inner.tpl');
$content_tpl = new XiTemplate($CONFIG['paths']['templates'].'/content.tpl');
$content_tpl->multiAssign($page->getPropertiesAsArray());
$content_tpl->parse('main');
$page_tpl->assign('content', $content_tpl->text('main'));
$page_tpl->multiAssign($page->getPropertiesAsArray());
parseMenu($page_tpl, $db, 'Main Menu');
$page_tpl->assign('submenu', Html::stripAttribute($submenu, 'id'));
$page_tpl->parse('main.head');
//require_once($CONFIG['paths']['templates'].'/template_common.php');
//$page_tpl->assign('header_graphic', 'images/homepagegraphic.jpg');
//$page_tpl->parse('main.header_graphic');
$news = $db->execute('SELECT body_text FROM WebPages WHERE page_id = 18');
$page_tpl->assign('news_text', $news->fields['body_text']);
/* Send the output */
$page_tpl->parse('main');
$page_tpl->out('main');
$dbReadOnly->close();
$db->close();
ob_end_flush();
?>Code: Select all
<?php /**
* This is the main website configuration file
*
* @package System
* @subpackage Config
*/
define('DB_USER', 'turningm');
define('DB_PASS', 'mgninrut');
require_once(dirname(__FILE__).'/../include/functions/site.php');
require_once('adodb/adodb.inc.php');
$dbReadOnly = masterConnect();
$db = connect();
$CONFIG = loadConfig($db);
if (strstr($_SERVER['REQUEST_URI'], '~'))
define('URL_MODIFIER', 1);
else
define('URL_MODIFIER', 0);
define('URL_TARGET', 1);
ini_set('include_path', ini_get('include_path').':'.$CONFIG['paths']['base']);
require_once($CONFIG['paths']['classes'].'/class.System.php');
require_once($CONFIG['paths']['classes'].'/class.XiTemplate.php');
require_once($CONFIG['paths']['classes'].'/class.String.php');
require_once($CONFIG['paths']['classes'].'/class.User.php');
require_once($CONFIG['paths']['classes'].'/class.Form.php');
require_once($CONFIG['paths']['classes'].'/class.Pagination.php');
require_once($CONFIG['paths']['classes'].'/class.Html.php');
require_once($CONFIG['paths']['classes'].'/class.EnhancedMailer.php');
?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]