Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Grakle

Problema

Recommended Posts

Sou novo na Area de PHP.e queria saber oq eu devo coloca aqui:$dbhost = "oq devo colocar aqui q está escrito(localhost)!

eu sei q pra vôces e uma pergunta muito idiota,mas como nós não pode deichar de ajuda os NEWB,assim vcs ajudarem os NEWB, a comunidade do PHP irá crscer + e +! http://forum.imasters.com.br/public/style_emoticons/default/joia.gif http://forum.imasters.com.br/public/style_emoticons/default/joia.gif http://forum.imasters.com.br/public/style_emoticons/default/joia.gif

 

 

 

 

[]s a todos

Compartilhar este post


Link para o post
Compartilhar em outros sites

ae eu ja fiz tudo direitinho,mas ta dando umm erro olha ae;

 

Warning: main(language/lang-.php): failed to open stream: No such file or directory in /home/webcindario/claneb/mainfile.php on line 75

 

Warning: main(): Failed opening 'language/lang-.php' for inclusion (include_path='.') in /home/webcindario/claneb/mainfile.php on line 75

 

Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/webcindario/claneb/header.php on line 31

 

Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.') in /home/webcindario/claneb/header.php on line 31

 

Fatal error: Call to undefined function: themeheader() in /home/webcindario/claneb/header.php on line 47

 

 

Bom essi e o error q ta aparecendo na pagina quando eu entro

 

A URL do site -=[EB]=- Elite Brasileira

Compartilhar este post


Link para o post
Compartilhar em outros sites

tipo essis bugs aqui eu arrumuei mas não acabou tem mais um ainda, Fatal error: Cannot instantiate non-existent class: sql_db in /home/webcindario/ebclan/db/db.php on line 86 bom vou coloca os codigos aquiline86$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);line87 if(!$db->db_connect_id) {line88 die("<br><br><center><img src=images/logo.gif><br><br><b>There line89seems to be a problem with the MySQL server, sorry for the line90inconvenience.<br><br>We should be back shortly.</center></b>");}?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Bom se alguem souber editar essis codigos entre em contato comigo pra min passar os codigos,bom espero q alguem me ajude!! :D

Compartilhar este post


Link para o post
Compartilhar em outros sites

se você postar seu código fica mais facil de ver onde tá o erro...manda ele ai...

Compartilhar este post


Link para o post
Compartilhar em outros sites

PHP [/tr][tr]<?php

/***************************************************************************

* db.php

* -------------------

* begin : Saturday, Feb 13, 2001

* copyright : © 2001 The phpBB Group

* email : support@phpbb.com

*

* $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $

*

*

***************************************************************************/

 

/***************************************************************************

* This file is part of the phpBB2 port to Nuke 6.0 © copyright 2002

* by Tom Nitzschner (tom@toms-home.com)

* http://bbtonuke.sourceforge.net (or http://www.toms-home.com)

*

* As always, make a backup before messing with anything. All code

* release by me is considered sample code only. It may be fully

* functual, but you use it at your own risk, if you break it,

* you get to fix it too. No waranty is given or implied.

*

* Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,

* then on my site. All original header code and copyright messages will be maintained

* to give credit where credit is due. If you modify this, the only requirement is

* that you also maintain all original copyright messages. All my work is released

* under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.

*

***************************************************************************/

 

/***************************************************************************

*

* 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.

*

***************************************************************************/

 

global $forum_admin;

if ($forum_admin == 1) {

$the_include = "../../../db";

} elseif ($inside_mod == 1) {

$the_include = "../../db";

} else {

$the_include = "db";

}

 

switch($dbtype) {

 

case 'MySQL':

include("".$the_include."/mysql.php");

break;

 

case 'mysql4':

include("".$the_include."/mysql4.php");

break;

 

case 'postgres':

include("".$the_include."/postgres7.php");

break;

 

case 'mssql':

include("".$the_include."/mssql.php");

break;

 

case 'oracle':

include("".$the_include."/oracle.php");

break;

 

case 'msaccess':

include("".$the_include."/msaccess.php");

break;

 

case 'mssql-odbc':

include("".$the_include."/mssql-odbc.php");

break;

 

case 'db2':

include("".$the_include."/db2.php");

break;

 

}

 

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);

if(!$db->db_connect_id) {

die("<br><br><center><img src=images/logo.gif><br><br><b>There seems to be a problem with the MySQL server, sorry for the inconvenience.<br><br>We should be back shortly.</center></b>");

}

 

?>

[/tr]

Compartilhar este post


Link para o post
Compartilhar em outros sites

Note que os codigos estão um pouco diferente do cima,o de cima e o PHP Nuke 7.3

e essi aqui e o 7.0,Bom qual sera que eu devo usar,bom pelo oque eu vi,parace que o 7.0 e melhor, bom eu transferi os dados pro site,mas deu Fatal Error essi aqui:Fatal error: Call to undefined function: message_die() in /home/webcindario/programacoes/db/db.php on line 88

 

Bom vou colocar o codigo do arquivo db_.php

 

PHP [/tr][tr]<?php

/***************************************************************************

* db.php

* -------------------

* begin : Saturday, Feb 13, 2001

* copyright : © 2001 The phpBB Group

* email : support@phpbb.com

*

* $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $

*

*

***************************************************************************/

 

/***************************************************************************

* This file is part of the phpBB2 port to Nuke 6.0 © copyright 2002

* by Tom Nitzschner (tom@toms-home.com)

* http://bbtonuke.sourceforge.net (or http://www.toms-home.com)

*

* As always, make a backup before messing with anything. All code

* release by me is considered sample code only. It may be fully

* functual, but you use it at your own risk, if you break it,

* you get to fix it too. No waranty is given or implied.

*

* Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,

* then on my site. All original header code and copyright messages will be maintained

* to give credit where credit is due. If you modify this, the only requirement is

* that you also maintain all original copyright messages. All my work is released

* under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.

*

***************************************************************************/

 

/***************************************************************************

*

* 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.

*

***************************************************************************/

 

global $forum_admin;

if ($forum_admin == 1) {

$the_include = "../../../db";

} elseif ($inside_mod == 1) {

$the_include = "../../db";

} else {

$the_include = "db";

}

 

switch($dbtype) {

 

case 'MySQL':

include("".$the_include."/mysql.php");

break;

 

case 'mysql4':

include("".$the_include."/mysql4.php");

break;

 

case 'postgres':

include("".$the_include."/postgres7.php");

break;

 

case 'mssql':

include("".$the_include."/mssql.php");

break;

 

case 'oracle':

include("".$the_include."/oracle.php");

break;

 

case 'msaccess':

include("".$the_include."/msaccess.php");

break;

 

case 'mssql-odbc':

include("".$the_include."/mssql-odbc.php");

break;

 

case 'db2':

include("".$the_include."/db2.php");

break;

 

}

 

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);

if(!$db->db_connect_id) {

message_die(CRITICAL_ERROR, "Could not connect to the database");

}

 

?>

[/tr]

 

aqui está o código da pasta db.php,espero que alguem me ajude nessa, :D :D

Compartilhar este post


Link para o post
Compartilhar em outros sites

Galera me ajude POR FAVOR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Compartilhar este post


Link para o post
Compartilhar em outros sites

Isso ocorre pq a função: message_die() , Ñ está definida.

 

Está função serve para dar um aviso caso ñ consiga conectar no banco de dados mysql. Só você criar está função q resolve.

 

Flwwwwwwwwwwwww

Compartilhar este post


Link para o post
Compartilhar em outros sites

e com faço essa funçäo? alguem pode da uma idéia como fazer isto?

Compartilhar este post


Link para o post
Compartilhar em outros sites

e com faço essa funçäo? alguem pode da uma idéia como fazer isto?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Bom irei porta os codigos do config.php

 

PHP [/tr][tr]<?php

 

######################################################################

# PHP-NUKE: Advanced Content Management System

# ============================================

#

# Copyright © 2002 by Francisco Burzi (fbc@mandrakesoft.com)

# http://phpnuke.org

#

# This module is to configure the main options for your site

#

# 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.

######################################################################

 

######################################################################

# Database & System Config

#

# dbhost: SQL Database Hostname

# dbuname: SQL Username

# dbpass: SQL Password

# dbname: SQL Database Name

# $prefix: Your Database table's prefix

# $user_prefix: Your Users'

Database table's prefix (To share it)

# $dbtype: Your Database Server type. Supported servers are:

# MySQL, mysql4, postgres, mssql, oracle, msaccess,

# db2 and mssql-odbc

# Be sure to write it exactly as above, case SeNsItIvE!

# $sitekey: Security Key. CHANGE it to whatever you want, as long

# as you want. Just don'

t use quotes.

# $gfx_chk: Set the graphic security code on every login screen,

# You need to have GD extension installed:

# 0: No check

# 1: Administrators login only

# 2: Users login only

# 3: New users registration only

# 4: Both, users login and new users registration only

# 5: Administrators and users login only

# 6: Administrators and new users registration only

# 7: Everywhere on all login options (Admins and Users)

# NOTE: If you aren't sure set this value to 0

######################################################################

 

$dbhost = "mysql.webcindario.com";

$dbuname = "*****";<- não posso colocar

$dbpass = "*****";<- não posso colocar

$dbname = "programacoes";

$prefix = "nuke";

$user_prefix = "nuke";

$dbtype = "MySQL";

$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";

$gfx_chk = 7;

 

/*********************************************************************/

/* You finished to configure the Database. Now you can change all */

/* you want in the Administration Section. To enter just launch */

/* you web browser pointing to http://yourdomain.com/admin.php */

/* */

/* Remeber to go to Settings section where you can configure your */

/* new site. In that menu you can change all you need to change. */

/* */

/* Congratulations! now you have an automated news portal! */

/* Thanks for choose PHP-Nuke: The Future of the Web */

/*********************************************************************/

 

// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING

 

$reasons = array("As Is",

"Offtopic",

"Flamebait",

"Troll",

"Redundant",

"Insighful",

"Interesting",

"Informative",

"Funny",

"Overrated",

"Underrated");

$badreasons = 4;

$AllowableHTML = array("b"=>1,

"i"=>1,

"a"=>2,

"em"=>1,

"br"=>1,

"strong"=>1,

"blockquote"=>1,

"tt"=>1,

"li"=>1,

"ol"=>1,

"ul"=>1);

$CensorList = array("fuck",

"cunt",

"fucker",

"fucking",

"pussy",

"cock",

"c0ck",

"cum",

"twat",

"clit",

"bitch",

"fuk",

"fuking",

"motherfucker");

$tipath = "images/topics/";

if (eregi("config.php",$_SERVER['PHP_SELF'])) {

Header("Location: index.php");

die();

}

 

?>

[/tr]

Compartilhar este post


Link para o post
Compartilhar em outros sites

este erro está me perseguindo, Fatal error: Call to undefined function: message_die() in /home/webcindario/programacoes/db/db.php on line 88em todas as verçaõ e eu ja usei,aparece essi erro! Alguem sabe por que está aparecendo isso?!!

Compartilhar este post


Link para o post
Compartilhar em outros sites

aqui está os códigos do db.php

 

PHP [/tr][tr]<?php

/***************************************************************************

* db.php

* -------------------

* begin : Saturday, Feb 13, 2001

* copyright : © 2001 The phpBB Group

* email : support@phpbb.com

*

* $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $

*

*

***************************************************************************/

 

/***************************************************************************

* This file is part of the phpBB2 port to Nuke 6.0 © copyright 2002

* by Tom Nitzschner (tom@toms-home.com)

* http://bbtonuke.sourceforge.net (or http://www.toms-home.com)

*

* As always, make a backup before messing with anything. All code

* release by me is considered sample code only. It may be fully

* functual, but you use it at your own risk, if you break it,

* you get to fix it too. No waranty is given or implied.

*

* Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,

* then on my site. All original header code and copyright messages will be maintained

* to give credit where credit is due. If you modify this, the only requirement is

* that you also maintain all original copyright messages. All my work is released

* under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.

*

***************************************************************************/

 

/***************************************************************************

*

* 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.

*

***************************************************************************/

 

global $forum_admin;

if ($forum_admin == 1) {

$the_include = "../../../db";

} elseif ($inside_mod == 1) {

$the_include = "../../db";

} else {

$the_include = "db";

}

 

switch($dbtype) {

 

case 'MySQL':

include("".$the_include."/mysql.php");

break;

 

case 'mysql4':

include("".$the_include."/mysql4.php");

break;

 

case 'postgres':

include("".$the_include."/postgres7.php");

break;

 

case 'mssql':

include("".$the_include."/mssql.php");

break;

 

case 'oracle':

include("".$the_include."/oracle.php");

break;

 

case 'msaccess':

include("".$the_include."/msaccess.php");

break;

 

case 'mssql-odbc':

include("".$the_include."/mssql-odbc.php");

break;

 

case 'db2':

include("".$the_include."/db2.php");

break;

 

}

 

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);

if(!$db->db_connect_id) {

message_die(CRITICAL_ERROR, "Could not connect to the database");

}

 

?>

[/tr]

Compartilhar este post


Link para o post
Compartilhar em outros sites

Mas tipo,posso colocar qualquer menssagem la?

Compartilhar este post


Link para o post
Compartilhar em outros sites

eu arrumei o erro,mas está aparecend isso agora:There seems to be a problem with the MySQL server, sorry for the inconvenience.We should be back shortly.oq será?

Compartilhar este post


Link para o post
Compartilhar em outros sites

There seems to be a problem with the MySQL server, sorry for the inconvenience.We should be back shortly.

Isto parece ser um problema com o servidor de Mysql, desculpe pelo inconveniente.Nós devemos estar de volta rapidamente.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.