collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: syntax error, unexpected T_STRING  (Read 3553 times)

0 Members and 1 Guest are viewing this topic.

Offline muso

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
syntax error, unexpected T_STRING
« on: February 25, 2010, 03:43:35 am »
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?

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: syntax error, unexpected T_STRING
« Reply #1 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.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: syntax error, unexpected T_STRING
« Reply #2 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.
BeBot Founder and Fixer Kingpin

Offline muso

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: syntax error, unexpected T_STRING
« Reply #3 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

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]; 

?>
 
 
« Last Edit: February 25, 2010, 11:54:06 am by muso »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: syntax error, unexpected T_STRING
« Reply #4 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.
BeBot Founder and Fixer Kingpin

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 117
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal