Pagina 1 van 1

cronjob error

Geplaatst: 06 sep 2005, 20:15
door gies
Als ik het volgende script normaal uitvoer (via een browser) krijg ik geen errors...

Code: Selecteer alles

<?php
/***************************************************************************
 *                               db_update.php
 *                            -------------------
 *
 *   copyright            : ?2003 Freakin' Booty ;-P & Antony Bailey
 *   project              : http://sourceforge.net/projects/dbgenerator
 *   Website              : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//





$page_title = 'Updating the database';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';


$sql = array();

MY QUERY

for( $i = 0; $i < count($sql); $i++ )
{
	if( !$result = $db->sql_query ($sql[$i]) )
	{
		$error = $db->sql_error();

		echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
	}
	else
	{
		echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Successfull</b></font></li><br />';
	}
}


echo '</ul></span></td></tr><tr><td class="catBottom" height="28">&nbsp;</td></tr>';

echo '<tr><th>End</th></tr><tr><td><span class="genmed">Installation is now finished. Please be sure to delete this file now.<br />If you have run into any errors, please visit the <a href="http://www.phpbbsupport.co.uk" target="_phpbbsupport">phpBBSupport.co.uk</a> and ask someone for help.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>';

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
via een jobcron wel... hoe kan dat ?

Geplaatst: 06 sep 2005, 21:08
door Leipo

Code: Selecteer alles

Warning: main(./extension.inc): failed to open stream: No such file or directory in 
/domains/thealtar.nl/public_html/phpBB2/cronjob.php on line 23 
Warning: main(./extension.inc): failed to open stream: No such file or directory in /domains/thealtar.nl/public_html/phpBB2/cronjob.php on line 23

Geplaatst: 06 sep 2005, 21:13
door gies
thanx, euhm maar wat betekent dat ???

Geplaatst: 06 sep 2005, 22:08
door Stef
Dat ie 't bestand niet kan vinden.

Geplaatst: 06 sep 2005, 22:10
door gies
maar dat snap ik niet, want het php bestand cronjob vind ie wel.

Hij zegt dat ie die file op line 23 niet kan vinden en dit is line 23
include($phpbb_root_path . 'extension.inc');
??? snap er niets van :bier:

waarom kan ik hem zo dan wel draaien vanuit de browser ???

Geplaatst: 07 sep 2005, 06:01
door Bas
Je moet $phpbb_root_path zetten naar het volledige pad naar phpBB, anders werkt hij niet ;)

Geplaatst: 07 sep 2005, 08:07
door gies
Thanx!