BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: muso on February 25, 2010, 03:43:35 am

Title: syntax error, unexpected T_STRING
Post by: muso on February 25, 2010, 03:43:35 am
http://advertisting.info/phpinfo.php (http://advertisting.info/phpinfo.php)

Code: [Select]
syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/home/content/41/5690141/html/BeBot/Sources/Conf.php</b> on line <b>41</b><br />
Can i get the bot starting on this server?
Title: Re: syntax error, unexpected T_STRING
Post by: Getrix on February 25, 2010, 09:02:44 am
You have broken something in Conf.php...
Get a fresh Conf.php file and start over again with config, easiest way.
Title: Re: syntax error, unexpected T_STRING
Post by: Khalem on February 25, 2010, 10:15:45 am
I might be wrong, but it almost looks like you are trying to start BeBot from a webserver.

Make sure you are starting it from command line, or you might need to use php-cli as the executeable.
Title: Re: syntax error, unexpected T_STRING
Post by: muso on February 25, 2010, 11:10:43 am
this is godddy.com webserver linux, and i started from putty.exe i did changed the conf.php and still

Code: [Select]
<b>Parse error</b>:  syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/home/content/41/5690141/html/BeBot/Sources/Conf.php</b> on line <b>41</b><br />
line 41 contain
Code: [Select]
private $conf;
private $login;

php-cli
http://advertisting.info/phpcli.php (http://advertisting.info/phpcli.php)

i did tried this file in putty.ex and worked properly

Code: [Select]
#!/usr/bin/php -q
<?php
echo "Hello World with PHP CLI<br />";

echo 
"<br />Test Read Arguements:\n\n";   
echo 
$_SERVER["argc"];     
echo 
"\n";   
echo 
$_SERVER["argv"][1]; 

?>
 
 
Title: Re: syntax error, unexpected T_STRING
Post by: Khalem on February 25, 2010, 02:32:13 pm
First off, it seems like your command line linux is PHP 4, not PHP 5, which is why you are getting errors on line 41 since PHP 4 does not have the concept of private and public variables.

Second, you have/had your BeBot accesible trough the web which is a very bad thing in general as it was never written to be web facing at all.

Third, I highly doubt your PHP has sockets support enabled (as this is a security risk on webservers) which is required to run BeBot.

And finally, you might want to check if Godaddy allows you to run background shell processes if you do not have a VPS, and even then it might not be allowed.

P.S. Your "php-cli" example is calling php, not php-cli.
SimplePortal 2.3.7 © 2008-2025, SimplePortal