Eddy Perossi Posted June 8, 2012 Report Share Posted June 8, 2012 Bom dia, estou com esse erro aqui quebrando a cabeça e não consigo tirar de jeito nenhumParse error: parse error in D:\Programas\wamp\www\index.php on line 140A minha Index é essa Abaixo:<?if(!file_exists("config.php")){echo "<script>window.location=('install/install.php')</script>";}include('config.php');?><!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"><html><head><link rel="icon" href="favicon.ico" type="image/x-icon" /> <link rel="SHORTCUT ICON" href="favicon.ico" type="image/x-icon" /> <link rel="apple-touch-icon" href="favicon.ico" type="image/x-icon" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>#seuRAGNA</title><link href="css.css" rel="stylesheet" type="text/css" /><script language="JavaScript">function clear_field(field){if (field.value==field.defaultValue) { field.value='' }}function check_field(field){if (field.value=='' ||field.value==' ') {field.value=field.defaultValue }}</script></head><body><div id="banner"></div><div id="clear"></div><div id="tudo"><div id="conteudo"><div id="menu"> <ul> <li><a href="?go=0">Início</a></li> <li><a href="?go=1">Informações</a></li> <li><a href="?go=RE">Cadastre-se</a></li> <li><a href="?go=D1">Downloads</a></li> <li><a href="?go=DOA">Doações</a></li> <li><a href="?go=REGR">Regras</a></li> <li><a href="?go=EQ">Equipe</a></li> <li><a href="#">Fórum</a></li> </ul></div><div id="comeceajogar"> <a href="?go=D1"><img style="border: 0px solid ; width: 302px; height: 159px;" src="images/passo1.jpg" tppabs="" alt="Baixe Nosso Patch!" title="Baixe Nosso Patch!" /></a><a href="?go=RE"><img style="border: 0px solid ; width: 288px; height: 159px;" src="images/passo2.jpg" tppabs="" alt="Crie Uma Conta!" title="Crie Uma Conta!" /></a><a href="#forum#" tppabs="" target="_blank"><img src="images/passo3.jpg" alt="Comece a Jogar!" title="Comece a Jogar!" tppabs="" border="0" /></a></div><div id="direita"> <? if( $_GET['go'] != ""){ $pag = $_GET['go']; include('page.php'); if(file_exists("$classefinal.php")){ include"$classefinal.php"; }else{ include '404.php'; } }else{ include "home.php"; } ?></div> <div id="esquerda"><? include('pages/pnel.php') ?><p align="left"><img src="images/cadastrorecuperar.png" border="0" usemap="#Map" /><map name="Map" id="Map"> <area shape="rect" coords="68,18,197,55" href="?go=RE" target="_parent" /> <area shape="rect" coords="69,60,197,103" href="?go=RES" target="_parent" /></map> </p><img src="images/status.png" alt="Status" width="205" height="60" /> <div align="center"> <p> <?php include('config.php'); if ($server and $port and $timeout) { $char = @fsockopen("$server", $port, $errno, $errstr, $timeout); $login = @fsockopen("$server", $port2, $errno, $errstr, $timeout); $map = @fsockopen("$server", $port3, $errno, $errstr, $timeout); } if($char) {?> Char Server: <img src='images/accept.png'><br> <? } else {?> Char Server: <img src='images/delete.png'><br> <? } if($login) {?> Login Server: <img src='images/accept.png'><br> <? } else {?> Login Server: <img src='images/delete.png'><br> <? } if($map) {?> Map Server: <img src='images/accept.png'><br> <? } else {?> Map Server: <img src='images/delete.png'><br> <? } include('pages/status.php')?></p> <p><a href="?go=2">Ver Usuários Online</a></p> </div></div> </div> </div> <div id="clear"></div><div id="rodape"></br> <div id="rodape_desc"> <p>© 2012 <strong> </strong>- todos os direitos reservados a #seuRAGNA.<br /> Ragnarok é um produto da Gravity Corp. & LeeMyougjin.<br /> Website desenvolvido por <strong>Anderson Pontes</strong>.</p></div> </div></body></html> Quote Link to comment Share on other sites More sharing options...
0 Willian Gustavo Veiga Posted June 8, 2012 Report Share Posted June 8, 2012 E qual é a linha 140? Outra coisa, coloque o código entre as tags code do fórum.Um abraço. Quote Link to comment Share on other sites More sharing options...
0 Eddy Perossi Posted June 8, 2012 Author Report Share Posted June 8, 2012 linha 140 é a ultima, como assim codigo? que tipo de codigo? entendo um pouco de script pois crio script de npc de jogos, pode me explicar mais ou menos como arrumo isso? é que eu não mecho com paginas PHP só quero deixar meu site online e não tou conseguindo, Obrigado '-' Quote Link to comment Share on other sites More sharing options...
0 JaguA Posted June 8, 2012 Report Share Posted June 8, 2012 remova todos os -> <? e deixe assim -> <?phpve se aparece outro erro ou se permance neste mesmo erro.. posi este erro não diz muita coisa...o seus includes pode deixar sem os parenteses somente com a aspa não tem problema também.esse include '$classefinal.php'onde você ciro essa variavel ela vem de outra pagina como ela foi declarada? Quote Link to comment Share on other sites More sharing options...
Question
Eddy Perossi
Bom dia, estou com esse erro aqui quebrando a cabeça e não consigo tirar de jeito nenhum
Parse error: parse error in D:\Programas\wamp\www\index.php on line 140
A minha Index é essa Abaixo:
<?
if(!file_exists("config.php")){
echo "<script>window.location=('install/install.php')</script>";
}
include('config.php');
?>
<!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">
<html>
<head>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="SHORTCUT ICON" href="favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>#seuRAGNA</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
function clear_field(field){
if (field.value==field.defaultValue)
{
field.value=''
}
}
function check_field(field)
{
if (field.value=='' ||
field.value==' ')
{
field.value=field.defaultValue
}
}
</script>
</head>
<body>
<div id="banner"></div>
<div id="clear"></div>
<div id="tudo">
<div id="conteudo">
<div id="menu">
<ul>
<li><a href="?go=0">Início</a></li>
<li><a href="?go=1">Informações</a></li>
<li><a href="?go=RE">Cadastre-se</a></li>
<li><a href="?go=D1">Downloads</a></li>
<li><a href="?go=DOA">Doações</a></li>
<li><a href="?go=REGR">Regras</a></li>
<li><a href="?go=EQ">Equipe</a></li>
<li><a href="#">Fórum</a></li>
</ul>
</div>
<div id="comeceajogar"> <a href="?go=D1"><img style="border: 0px solid ; width: 302px; height: 159px;" src="images/passo1.jpg" tppabs="" alt="Baixe Nosso Patch!" title="Baixe Nosso Patch!" /></a><a href="?go=RE"><img style="border: 0px solid ; width: 288px; height: 159px;" src="images/passo2.jpg" tppabs="" alt="Crie Uma Conta!" title="Crie Uma Conta!" /></a><a href="#forum#" tppabs="" target="_blank"><img src="images/passo3.jpg" alt="Comece a Jogar!" title="Comece a Jogar!" tppabs="" border="0" /></a></div>
<div id="direita">
<?
if( $_GET['go'] != ""){
$pag = $_GET['go'];
include('page.php');
if(file_exists("$classefinal.php")){
include"$classefinal.php";
}else{
include '404.php';
}
}else{
include "home.php";
}
?>
</div>
<div id="esquerda">
<? include('pages/pnel.php') ?>
<p align="left">
<img src="images/cadastrorecuperar.png" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="68,18,197,55" href="?go=RE" target="_parent" />
<area shape="rect" coords="69,60,197,103" href="?go=RES" target="_parent" />
</map>
</p>
<img src="images/status.png" alt="Status" width="205" height="60" />
<div align="center">
<p>
<?php
include('config.php');
if ($server and $port and $timeout) {
$char = @fsockopen("$server", $port, $errno, $errstr, $timeout);
$login = @fsockopen("$server", $port2, $errno, $errstr, $timeout);
$map = @fsockopen("$server", $port3, $errno, $errstr, $timeout);
}
if($char) {?>
Char Server: <img src='images/accept.png'><br>
<?
}
else {?>
Char Server: <img src='images/delete.png'><br>
<?
}
if($login) {?>
Login Server: <img src='images/accept.png'><br>
<?
}
else {?>
Login Server: <img src='images/delete.png'><br>
<?
}
if($map) {?>
Map Server: <img src='images/accept.png'><br>
<?
}
else {?>
Map Server: <img src='images/delete.png'><br>
<?
}
include('pages/status.php')
?>
</p>
<p><a href="?go=2">Ver Usuários Online</a></p>
</div>
</div>
</div>
</div>
<div id="clear"></div>
<div id="rodape"></br>
<div id="rodape_desc">
<p>© 2012 <strong> </strong>- todos os direitos reservados a #seuRAGNA.<br />
Ragnarok é um produto da Gravity Corp. & LeeMyougjin.<br />
Website desenvolvido por <strong>Anderson Pontes</strong>.</p>
</div>
</div>
</body>
</html>
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.