Jump to content
MakeWebGames

Recommended Posts

Posted

hi im new in coding kinda so can some one tell me were the unexpected t-string is in line 6 cheers!

<?php
session_start();
include "config.php";
global $_CONFIG;
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php"usr/lib/php/usr/local/lib/php"
$db=new database;
$db->configure($_CONFIG['hostname'],
$_CONFIG['username'],
$_CONFIG['password'],
$_CONFIG['database'],
$_CONFIG['persistent']);

 

Please use the "code" bbc tags, and also do not post whole scripts on here if they aren't free.

Guest Anonymous
Posted

Re: unexpected t string

Looks like you pasted the php path maybe a typo error any ways here:

<?php
session_start();
include "config.php";
global $_CONFIG;
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php";
$db=new database;
$db->configure($_CONFIG['hostname'],
$_CONFIG['username'],
$_CONFIG['password'],
$_CONFIG['database'],
$_CONFIG['persistent']);
Posted

Re: unexpected t string

to add to what Zeon said, the reason you get the t_string error is because of the double quote count in the line for one and no return

require "class/class_db_{$_CONFIG['driver']}.php"usr/lib/php/usr/local/lib/php"

------^1 ------^2 -----^3 and missing --> ; not to mention the extra that probably shouldn't be there as Zeon displayed.

Posted

Re: unexpected t string

yeah thanks but now it says:

Fatal error: require() [function.require]: Failed opening required 'class/class_db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a7782089/public_html/login.php on line 6

:?

Posted

Re: unexpected t string

open up your original download for the engine...there should be a folder named "class" in that folder is a file named "class_db_mysql.php"

Have you uploaded that folder to your host? The error is saying that it can NOT include the file, most likely because it is missing.

Guest Anonymous
Posted

Re: unexpected t string

IS there a folder in your public_html dir named class? then has two files named class_db_mysql.php & class_db_mysqli.php if not create the folder called "class" then upload them files too it.

Guest Anonymous
Posted

Re: unexpected t string

Whats your site url? are they even legal codes?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...