#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
$result = $db->sql_query($sql);
$phpbb_root_path = './forum/';
include('forum/phpbb3/common.php');
include('forum/phpbb3/includes/functions_posting.php');
define('IN_SITE', true);
define('IN_PHPBB', true);
$phpbb_root_path = 'forum/phpbb3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include('forum/phpbb3/common.php');
include('forum/phpbb3/includes/functions_posting.php');
define('IN_SITE', true);
define('IN_PHPBB', true);
$phpbb_root_path = 'forum/phpbb3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
define('IN_SITE', true);
define('IN_PHPBB', true);
$phpbb_root_path = './forum/phpbb3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include(....common.php);
include($phpbb_root_path . 'common.' . $phpEx);
systemz a écrit:Voici le code :
- Code: Tout sélectionner
$result = $db->sql_query($sql);
L'erreur affiche cette ligne, mais l'erreur viens normalement d'une ligne antérieure, mais laquelle
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
</head>
<body>
<ul>
<?php
define('IN_SITE', true);
define('IN_PHPBB', true);
$phpbb_root_path = './forum/phpbb3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
// Sélection des 10 derniers posts
$sql = "SELECT t.topic_replies_real,t.topic_replies,t.topic_title,t.forum_id,t.topic_id,t.topic_type,t.topic_last_post_id,f.forum_name,t.topic_last_poster_name
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f
WHERE t.topic_approved = 1
AND t.topic_status <> 2
AND t.forum_id = f.forum_id
ORDER BY t.topic_last_post_time DESC
LIMIT 10";
$result = $db->sql_query($sql);
// Boucle d'affichage du post
while($topic_data = $db->sql_fetchrow($result))
{
// Données du topic
$topic_title = $topic_data['topic_title'];
$topic_replies = $topic_data['topic_replies'];
$topic_replies_real = $topic_data['topic_replies_real'];
$forum_id = $topic_data['forum_id'];
$topic_id = $topic_data['topic_id'];
$forum_name = $topic_data['forum_name'];
$topic_last_post_id = $topic_data['topic_last_post_id'];
$topic_last_poster_name = $topic_data['topic_last_poster_name'];
$replies = ($auth->acl_get('m_approve', $forum_id)) ? $topic_replies_real : $topic_replies;
$start = floor(($replies) / $config['posts_per_page']) * $config['posts_per_page'];
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$topic_data['topic_title'] = censor_text($topic_data['topic_title']);
if (empty($phpbb_seo->seo_opt['virtual_folder']) || !empty($phpbb_seo->seo_url['forum'][$forum_id]) || $topic_data['topic_type'] == POST_GLOBAL) {
$phpbb_seo->prepare_iurl($topic_data, 'topic', $topic_data['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$forum_id]);
}
// www.phpBB-SEO.com SEO TOOLKIT END
$post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $topic_id . '&f=' . $forum_id . '&start=' . $start ) . '#p' . $topic_last_post_id;
$topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $topic_id . '&f=' . $forum_id );
//On affiche
echo '<li><a href="'.$topic_url.'">'.$topic_title.'</a> - '.$forum_name.' - <a rel="nofollow" href="'.$post_url.'">Dernier message par '.$topic_last_poster_name.'</a></li>';
}
$db->sql_freeresult($result);
?>
</ul>
</body>
</html>
[error] PHP Warning: include(./forUm/common.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/xx/www/test2.php on line 16
[error] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening './forUm/common.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/xx/www/test2.php on line 16
[error] PHP Warning: include(./forUm/includes/functions_posting.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/xx/www/test2.php on line 17
[error] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening './forUm/includes/functions_posting.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/xx/www/test2.php on line 17
PHP Fatal error: Call to a member function sql_query() on a non-object in /home/xx/www/test2.php on line 27
Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 0 invités
Copyright TutoMaker.com © Rentabiliser son site
Toute reproduction totale ou partielle du site est interdite sans l'accord de l'auteur, surtout que ça se voit vite ;)