AJAX Chat PHP error

Sometimes, we all need a little general help.

Post Permalink
by Hydrian » 5/22/2012

Can anyone please help me with some PHP. as you may have noticed im not a PHP nerd, i would like some help fixing a error

here is what it says

Code: Select all
Parse error: syntax error, unexpected T_STRING in /home/a5456554/public_html/chat/chat/install.php on line 17


and here is my php file

Code: Select all
<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 *
 * MyBB integration:
 * http://www.mybboard.net/
 */

// MyBB initialization:
define('IN_CHAT', 1);
chdir(AJAX_CHAT_PATH.'home/a5456554/public_html/chat/lib/php');
require('/home/a5456554/public_html/mybb/global.php' );
?>
Image
User avatar
Level 30
Artisan Electrician
Posts: 258
Joined: 5/15/12
Says: Buidling a game is more fun than you.

Post Permalink
by Hydrian » 5/24/2012

**bump**
Image
User avatar
Level 30
Artisan Electrician
Posts: 258
Joined: 5/15/12
Says: Buidling a game is more fun than you.

Post Permalink
by dylanaj5 » 5/24/2012

Hmmm Whats with the a349823948/public_html Shouldnt it just be home/public_html

Also did you modify the install script in any way?
Image
Level 9
Apprentice Narwhal
Posts: 330
Joined: 3/22/12

Post Permalink
by abcedea » 5/24/2012

Lol,
You put a space in a silly place XD

Code: Select all
require('/home/a5456554/public_html/mybb/global.php');


Try that for that last line. And a tip for next time you get an error:
Look at the line the error message is saying. It often means there is well, an error on that line. :/

Hope I helped!
User avatar
Level 4
Apprentice Crafter
Posts: 4
Joined: 2/28/12

Post Permalink
by abcedea » 5/24/2012

dylanaj5 wrote:Hmmm Whats with the a349823948/public_html Shouldnt it just be home/public_html


This guy is using a non-dedicated host. Thats the username for his/her service
User avatar
Level 4
Apprentice Crafter
Posts: 4
Joined: 2/28/12

Post Permalink
by dylanaj5 » 5/24/2012

ah Okey, The poor mans VPS
Image
Level 9
Apprentice Narwhal
Posts: 330
Joined: 3/22/12


Return to General Help