GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Feb-2008, 12:14
LeVaughn LeVaughn is offline
Junior Member
 
Join Date: Feb 2008
Posts: 38
LeVaughn is on a distinguished road

Hosting a WoW server, error problems


Code:
Parse error: parse error, unexpected T_DNUMBER, expecting T_VARIABLE or '$' in W:\home\admin\www\serveraddress\process.php on line 15

Its either that, or line 7. It keeps popping up in the most random of spots. If you guys could tell me how to fix this entire thing up I'd appreciate it.

PHP Code:

<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','TotH');
pt_register('POST','127.0.0.1');
if $TotH==) ||  !$127.0.0.1==){;
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try 

again.";
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(

strrev($PHP_SELF),"/"));
$message="servername: ".$TotH."
serverip: ".$127.0.0.1."
";
$link = mysql_connect("localhost","root","root");
mysql_select_db("realmd",$link);
$query="UPDATE realmlist SET name = '".$TotH."',address = '".$127.0.0.1."' WHERE id = '1'";
mysql_query($query);
?>


<!-- This is the content of the Thank you page, be careful while changing it -->

<h2>Thank you!</h2>

<table width=50%>
<tr><td>servername: </td><td> <?php echo $servername; ?> </td></tr>
<tr><td>serverip: </td><td> <?php echo $serverip; ?> </td></tr>
</table><br><br>

<input type="button" value="Close Window" onclick="window.close()">

<!-- Do not change anything below this line -->

<?php 
}
?>


ALSO, I HAVE ANOTHER ISSUE BELOW.

Error: Unable to connect to MySQL server. MySQL reported: Access denied for user 'root'@'localhost' (using password: YES). Error: Unable to connect to MySQL server. MySQL reported: Access denied for user 'root'@'localhost' (using password: YES).

Thats what pops up when I attempt to make an admin account.

The instruction manual where I found all the info to install this thing was here. http://www.youtube.com/watch?v=Z7NtwKgPC1Q and his other video http://www.youtube.com/watch?v=oBlNMaX6X3E&watch_response.

Maybe someone can make heads or tails of what's going on and help me.
Last edited by admin : 09-Feb-2008 at 02:00. Reason: Please insert your example PHP codes between [PHP] and [/PHP] tags
  #2  
Old 08-Feb-2008, 13:35
LeVaughn LeVaughn is offline
Junior Member
 
Join Date: Feb 2008
Posts: 38
LeVaughn is on a distinguished road

Re: Hosting a WoW server, error problems


Can anyone post back and help please? I'd really appriciate the help. I'm almost sick of trying to fix my issues. No one I know around here is good with coding or anything so yeah I'm pretty much a noob on his own.
  #3  
Old 08-Feb-2008, 14:20
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 924
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Hosting a WoW server, error problems


Just because the error complains about a particular line does NOT mean that is where the problem happened (although sometimes it does) -- as it is a 'best guess' by the parser to where it "thinks" the problem occurred.

I would venture to say, as a starting point, (there could still be other problems) that this line(6) doesn't look right:
PHP Code:

if $TotH==) || !$127.0.0.1==){; 


__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
Last edited by TurboPT : 08-Feb-2008 at 15:07.
  #4  
Old 08-Feb-2008, 14:30
LeVaughn LeVaughn is offline
Junior Member
 
Join Date: Feb 2008
Posts: 38
LeVaughn is on a distinguished road

Re: Hosting a WoW server, error problems


Well what do you suggest I do? I've honestly tried everything. When I first started the program, I had to change quite a bit to "TotH" and "127.0.0.1", and it gave me 1 error instead of the typical 4-10 errors hah. So I'm close to fixing it, but no matter what I've been trying, nothing seems to work.
  #5  
Old 08-Feb-2008, 15:16
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 924
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Hosting a WoW server, error problems


My help might be limited, for I don't have function: pt_register (is it in some other package? I don't see it in the php manual.)

Also, a variable must start with a $, followed by letters and underscores as it says here.

EDIT:
Up until I received the function error, try replacing the address(es) with host:
PHP Code:

pt_register('POST','host');if ($TotH=='' || !$host=='') 


Some(how/where) though, of course, the host value should be assigned the 127.0.0.1 value.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #6  
Old 08-Feb-2008, 16:41
LeVaughn LeVaughn is offline
Junior Member
 
Join Date: Feb 2008
Posts: 38
LeVaughn is on a distinguished road
Exclamation

Re: Hosting a WoW server, error problems


Quote:
Originally Posted by TurboPT
My help might be limited, for I don't have function: pt_register (is it in some other package? I don't see it in the php manual.)

Also, a variable must start with a $, followed by letters and underscores as it says http://us2.php.net/manual/en/language.variables.php.

EDIT:
Up until I received the function error, try replacing the address(es) with host:
PHP Code:

pt_register('POST','host');

if ($TotH=='' || !$host=='') 


Some(how/where) though, of course, the host value should be assigned the 127.0.0.1 value.

When I try replacing what the stuff with what you showed me, I get this message on the ServerName/Address site where I change the stuff up.

Code:
Parse error: parse error, unexpected '}' in W:\home\admin\www\serveraddress\process.php on line 10

PHP Code:

<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','TotH');
pt_register('POST','host');
if ($TotH=='' || !$host=='');
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try 

again.";
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(

strrev('!$PHP_SELF'),"/"));
$message="servername: ".$TotH."
serverip: ".$127.0.0.1."
";
$link = mysql_connect("localhost","root","root");
mysql_select_db("realmd",$link);
$query="UPDATE realmlist SET name = '".$TotH."',address = '".$127.0.0.1."' WHERE id = '1'";
mysql_query($query);
?>


<!-- This is the content of the Thank you page, be careful while changing it -->

<h2>Thank you!</h2>

<table width=50%>
<tr><td>servername: </td><td> <?php echo $servername; ?> </td></tr>
<tr><td>serverip: </td><td> <?php echo $serverip; ?> </td></tr>
</table><br><br>

<input type="button" value="Close Window" onclick="window.close()">

<!-- Do not change anything below this line -->

<?php 
}
?>


That is what it currently looks like, any ideas?
Last edited by admin : 09-Feb-2008 at 02:01. Reason: Please insert your example PHP codes between [PHP] and [/PHP] tags
  #7  
Old 08-Feb-2008, 16:52
LeVaughn LeVaughn is offline
Junior Member
 
Join Date: Feb 2008
Posts: 38
LeVaughn is on a distinguished road

Re: Hosting a WoW server, error problems


Parse error: parse error, unexpected '$' in W:\home\admin\www\serveraddress\process.php on line 14

now im having THAT problem, what ze heck?!
  #8  
Old 08-Feb-2008, 16:57
LeVaughn LeVaughn is offline
Junior Member
 
Join Date: Feb 2008
Posts: 38
LeVaughn is on a distinguished road

Re: Hosting a WoW server, error problems


When I replaced

PHP Code:

$where_form_is="http".(!$HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr

(strrev('PHP_SELF'),"/"));
$message="servername: "$.TotH."
serverip: ".$host." 



with

PHP Code:

$where_form_is="http".(!$HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr

(strrev('PHP_SELF'),"/"));
$message="servername: ".TotH."
serverip: ".$host." 



it gave me an error while trying to "Create or Change the Server Name / Ip."

The NEW error is

The following errors occurred while processing your form input.
You did not enter one or more of the required fields. Please go back and try again.

Now by this I assume they mean in the Process php folder, but I'm not entirely sure what the problem may be.
Last edited by admin : 09-Feb-2008 at 02:03. Reason: Please insert your example PHP codes between [PHP] and [/PHP] tags
  #9  
Old 08-Feb-2008, 18:00
LeVaughn LeVaughn is offline
Junior Member
 
Join Date: Feb 2008
Posts: 38
LeVaughn is on a distinguished road
Exclamation

Re: Hosting a WoW server, error problems


Well I think I'm done for a while. I've asked countless people to help and to no avail. All I can leave here with for the moment is my current process.php.

PHP Code:

<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','TotH');
pt_register('POST','host');
if (TotH=='servername' || !127.0.0.1=='address');
errors=1;
error.="<li>You did not enter one or more of the required fields. Please go back and try again.";

if(errors==1) echo error;
else{
$where_form_is="http".(!$HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev('PHP_SELF'),"/"));
$message="servername: ".TotH."
serverip: ".$127.0.0.1."
";
$link = mysql_connect("localhost","root","root");
mysql_select_db("realmd",$link);
$query="UPDATE realmlist SET name = '".$TotH."',address = '".$127.0.0.1."' WHERE id = '1'";
mysql_query($query);
?>


<!-- This is the content of the Thank you page, be careful while changing it -->

<h2>Thank you!</h2>

<table width=50%>
<tr><td>servername: </td><td> <?php echo $servername; ?> </td></tr>
<tr><td>serverip: </td><td> <?php echo $serverip; ?> </td></tr>
</table><br><br>

<input type="button" value="Close Window" onclick="window.close()">

<!-- Do not change anything below this line -->

<?php 
}
?>


I change what it tells me to change, and I search for another problem, but it keeps giving me random problems now. Maybe someone can look this over and figure out where I'm going wrong.

Go to youtube.com and find the World of Warcraft- Private Server Creation Guide, its creator is Whisprune. Ive asked for HIS help and nothing came up. Maybe you guys can watch it and make some sort of sense of this.

And, I'm sorry if I seem to be incredibly stupid or really annoying..I just have worked my **** off, and I'm having some issues personally xP So my mind isn't functioning at its full potential. But in any case, thanks for whatever help I've been given / will receive, its all useful =D!
Last edited by admin : 09-Feb-2008 at 02:05. Reason: Please insert your example PHP codes between [PHP] and [/PHP] tags
  #10  
Old 08-Feb-2008, 18:28
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 924
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Hosting a WoW server, error problems


The condition you have:
PHP Code:

if (TotH=='servername' || !127.0.0.1=='address'); 


is missing some things:
PHP Code:

if ($TotH=='servername' || !127.0.0.1=='address')
{
// things changed:
// 1. added $ to var TotH
// 2. remove the ending semi-colon
// 3. add opening brace. 


Other than that, I'm not sure what the significance of the !127.0.0.1, is this some sort of comparison trying to be accomplished?

With your next post(s), please place the code between [php] ...code here... [/php] tags, as it eases the code reading. (not to mention that the syntax highlighting can instantly indicate problem areas)
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
 

Recent GIDBlogFirst week of IA training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Affordable Shared and Reseller Hosting Packages Available watchdoghosting Web Hosting Advertisements & Offers 0 13-Nov-2006 17:44
Watchdog Hosting - Affordable Reseller and Shared Hosting watchdoghosting Web Hosting Advertisements & Offers 0 11-Oct-2006 13:15
bulk Email Marketing Bullet proof hosting additional2 Web Hosting Advertisements & Offers 0 08-Jul-2006 12:57

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:22.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.