rye1994 Posted March 26, 2008 Posted March 26, 2008 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. Quote
Guest Anonymous Posted March 26, 2008 Posted March 26, 2008 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']); Quote
curious4moreknowledge Posted March 27, 2008 Posted March 27, 2008 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. Quote
rye1994 Posted April 1, 2008 Author Posted April 1, 2008 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 :? Quote
Analog Posted April 1, 2008 Posted April 1, 2008 Re: unexpected t string do you have class_db_mysql.php in the /class directory on your server Quote
rye1994 Posted April 1, 2008 Author Posted April 1, 2008 Re: unexpected t string :? my database yh?? Quote
Analog Posted April 1, 2008 Posted April 1, 2008 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. Quote
Klikoka Posted April 1, 2008 Posted April 1, 2008 Re: unexpected t string everything would be easyer if you said what version you are using Quote
Analog Posted April 1, 2008 Posted April 1, 2008 Re: unexpected t string Version 2 uses the class files Quote
Guest Anonymous Posted April 1, 2008 Posted April 1, 2008 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. Quote
rye1994 Posted April 1, 2008 Author Posted April 1, 2008 Re: unexpected t string :-(no there isnt but also my files are currupted so i have none to replace it with!! Quote
Guest Anonymous Posted April 1, 2008 Posted April 1, 2008 Re: unexpected t string Whats your site url? are they even legal codes? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.