Jump to content


Photo

Erro Em Site


  • Faça o login para participar
16 replies to this topic

#1 infonet

infonet

    Turista

  • Usuários
  • 57 posts
  • Sexo:Não informado

Posted 17/02/2005, 16:31

qual pode me dizer o que seria o erro abaixo :::

Parse error: parse error, unexpected '}' in /home/temdtudo/public_html/temdtudo/classes/conexao.class.php on line 53

grato
Você procura Hospedagem para seu site ?

Visite a http://www.hostall.com.br

Domínios por R$ 35,90/ano

com painel de controle proprío

#2 LucasMS

LucasMS

    Super Veterano

  • Usuários
  • 2076 posts
  • Sexo:Não informado

Posted 17/02/2005, 16:38

poste seu codigo por volta da linha 53 ...

#3 infonet

infonet

    Turista

  • Usuários
  • 57 posts
  • Sexo:Não informado

Posted 17/02/2005, 16:45

o que aparece lá é só isso )
Você procura Hospedagem para seu site ?

Visite a http://www.hostall.com.br

Domínios por R$ 35,90/ano

com painel de controle proprío

#4 PHPMan

PHPMan

    Jesus te ama

  • Usuários
  • 149 posts
  • Sexo:Masculino
  • Localidade:Belo Horizonte

Posted 17/02/2005, 16:45

É bom postar sempre o código onde está aparecendo o erro mas parece-me que é as aspas. Não tenho certeza. hehe poste ai veio.

#5 infonet

infonet

    Turista

  • Usuários
  • 57 posts
  • Sexo:Não informado

Posted 17/02/2005, 16:48

<?



class classe_conexao{



var $host ;

var $user ;

var $senha ;

var $db;

var $result_conexao ;

var $result_query ;



function classe_conexao(){

$this->inicializar_atributos();

}



}



function inicializar_atributos(){

$this->host = "localhost";
$this->user = "senha";
$this->senha = "nomedb";
$this->db = "nomedb";
}


// $this->host = "localhost";

// $this->user = "usuario";

// $this->senha = "senha";

// $this->db = "nome";

}



function abrir_conexao(){

$this->result_conexao = mysql_connect("$this->host", "$this->user", "$this->senha")

// $this->result_conexao = mysql_connect("$this->host", "$this->user")

or die ("Não foi possível estabelecer uma conexão com o Banco de Dados: " . mysql_error());

mysql_select_db("$this->db");

}



function executar_query($sql){

$this->result_query = mysql_query("$sql");

return $this->result_query;

}



function fechar_conexao(){

// mysql_free_result($this->result_query);

mysql_close ($this->result_conexao);

}



function retorna_numero_de_registros($resultado){

$registros = mysql_num_rows($this->result_query);

return $registros;

}



}



?>

Edição feita por: infonet, 17/02/2005, 16:49.

Você procura Hospedagem para seu site ?

Visite a http://www.hostall.com.br

Domínios por R$ 35,90/ano

com painel de controle proprío

#6 PHPMan

PHPMan

    Jesus te ama

  • Usuários
  • 149 posts
  • Sexo:Masculino
  • Localidade:Belo Horizonte

Posted 17/02/2005, 17:00

<?

class classe_conexao{

var $host;
var $user;
var $senha;
var $db;
var $result_conexao;
var $result_query;



function classe_conexao(){
$this->inicializar_atributos();

}



}



function inicializar_atributos(){

$this->host = "localhost";
$this->user = "senha";
$this->senha = "nomedb";

}

function abrir_conexao(){
$this->result_conexao = mysql_connect("$this->host", "$this->user", "$this->senha")
or die ("Não foi possível estabelecer uma conexão com o Banco de Dados: " . mysql_error());
mysql_select_db("$this->db");

}



function executar_query($sql){
$this->result_query = mysql_query("$sql");
return $this->result_query;

}



function fechar_conexao(){



mysql_close ($this->result_conexao);

}

function retorna_numero_de_registros($resultado){
$registros = mysql_num_rows($this->result_query);
return $registros;

}

?>


Tenta agora (y)

#7 infonet

infonet

    Turista

  • Usuários
  • 57 posts
  • Sexo:Não informado

Posted 17/02/2005, 17:29

agora esta dando o seguinte erro :????



Warning: iniciar(): Unable to access ./delegate/delcadastrarcontador.php in /home/temdtudo/public_html/temdtudo/index.php on line 42

Warning: iniciar(./delegate/delcadastrarcontador.php): failed to open stream: No such file or directory in /home/temdtudo/public_html/temdtudo/index.php on line 42

Fatal error: iniciar(): Failed opening required './delegate/delcadastrarcontador.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/temdtudo/public_html/temdtudo/index.php on line 42
Você procura Hospedagem para seu site ?

Visite a http://www.hostall.com.br

Domínios por R$ 35,90/ano

com painel de controle proprío

#8 PHPMan

PHPMan

    Jesus te ama

  • Usuários
  • 149 posts
  • Sexo:Masculino
  • Localidade:Belo Horizonte

Posted 18/02/2005, 02:15

Cola o code desta linha 42 ae.. :o

#9 infonet

infonet

    Turista

  • Usuários
  • 57 posts
  • Sexo:Não informado

Posted 18/02/2005, 16:51

o erro voltou para isso agora :::

Parse error: parse error, unexpected '}' in /home/temdtudo/public_html/temdtudo/classes/conexao.class.php on line 53
Você procura Hospedagem para seu site ?

Visite a http://www.hostall.com.br

Domínios por R$ 35,90/ano

com painel de controle proprío

#10 ThalesWeb

ThalesWeb

    Veterano

  • Usuários
  • 1435 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP

Posted 18/02/2005, 18:54

o erro voltou para isso agora :::

Parse error: parse error, unexpected '}' in /home/temdtudo/public_html/temdtudo/classes/conexao.class.php on line 53

Poste o código inteiro, mas você voltou ao código anterior, né?
Thales Santos

#11 infonet

infonet

    Turista

  • Usuários
  • 57 posts
  • Sexo:Não informado

Posted 18/02/2005, 19:47

<?



class classe_conexao{



var $host ;

var $user ;

var $senha ;

var $db;

var $result_conexao ;

var $result_query ;



function classe_conexao(){

$this->inicializar_atributos();

}



}



function inicializar_atributos(){

$this->host = "localhost";
$this->user = "meulogin";
$this->senha = "minhasenha";
$this->db = "meubanco";

}


// $this->host = "localhost";

// $this->user = "root";

// $this->senha = "root";

// $this->db = "nomedodb";

}



function abrir_conexao(){

$this->result_conexao = mysql_connect("$this->host", "$this->user", "$this->senha")

// $this->result_conexao = mysql_connect("$this->host", "$this->user")

or die ("Não foi possível estabelecer uma conexão com o Banco de Dados: " . mysql_error());

mysql_select_db("$this->db");

}



function executar_query($sql){

$this->result_query = mysql_query("$sql");

return $this->result_query;

}



function fechar_conexao(){

// mysql_free_result($this->result_query);

mysql_close ($this->result_conexao);

}



function retorna_numero_de_registros($resultado){

$registros = mysql_num_rows($this->result_query);

return $registros;

}



}



?>
Você procura Hospedagem para seu site ?

Visite a http://www.hostall.com.br

Domínios por R$ 35,90/ano

com painel de controle proprío

#12 Felipe Pena

Felipe Pena

    O temor do Senhor é o princípio da sabedoria

  • Ex-Admins
  • 6441 posts
  • Sexo:Masculino

Posted 19/02/2005, 14:24

Veja se é assim:

<?
class classe_conexao{
  var $host ;
  var $user ;
  var $senha ;
  var $db;
  var $result_conexao ;
  var $result_query ;

      function classe_conexao() {
        $this->inicializar_atributos();
      }

      function inicializar_atributos(){
        $this->host = "localhost";
        $this->user = "meulogin";
        $this->senha = "minhasenha";
        $this->db = "meubanco";
      }

      function abrir_conexao(){
        $this->result_conexao = mysql_connect($this->host, $this->user, $this->senha)
        or die ("Não foi possível estabelecer uma conexão com o Banco de Dados: " . mysql_error());
        mysql_select_db($this->db);
      }

      function executar_query($sql){
        $this->result_query = mysql_query($sql);
        return $this->result_query;
      }

      function fechar_conexao(){
        mysql_close ($this->result_conexao);
      }

      function retorna_numero_de_registros($resultado){
        $registros = mysql_num_rows($this->result_query);
        return $registros;
      }

}
?>


Felipe Pena
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29

#13 infonet

infonet

    Turista

  • Usuários
  • 57 posts
  • Sexo:Não informado

Posted 19/02/2005, 16:04

:blink: agora deu esse erro :::::::::::::: (n) :wacko: :unsure:


Warning: iniciar(): Unable to access ./delegate/delcadastrarcontador.php in /home/temdtudo/public_html/temdtudo/index.php on line 42

Warning: iniciar(./delegate/delcadastrarcontador.php): failed to open stream: No such file or directory in /home/temdtudo/public_html/temdtudo/index.php on line 42

Fatal error: iniciar(): Failed opening required './delegate/delcadastrarcontador.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/temdtudo/public_html/temdtudo/index.php on line 42
Você procura Hospedagem para seu site ?

Visite a http://www.hostall.com.br

Domínios por R$ 35,90/ano

com painel de controle proprío

#14 ThalesWeb

ThalesWeb

    Veterano

  • Usuários
  • 1435 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP

Posted 19/02/2005, 16:20

1º Erro - Acesso não permitido (um CHMOD deve resolver).

2º Erro - Falta de arquivo.

3º Erro - Não conseguiu abrir o arquivo delcadastrarcontador.php.
Thales Santos

#15 infonet

infonet

    Turista

  • Usuários
  • 57 posts
  • Sexo:Não informado

Posted 19/02/2005, 16:55

Olha o erro agora :::::::::::::::::::::::::::::::::::::::::::::::::::::::::




Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@temdtudo.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Você procura Hospedagem para seu site ?

Visite a http://www.hostall.com.br

Domínios por R$ 35,90/ano

com painel de controle proprío




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq