Config.php throwing error when moved to ISP
Config.php throwing error when moved to ISP
I've been developing some simple pages locally, and things are working fine, but when I moved my content to my ISP (Fatcow), setup the associated mysql database on their servers, I get:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /hermes/walnaweb10a/b131/moo.bryanforsyth/stms/athlete/php/lib/config.php on line 19
The only change I made to the config.php file was update the connection info.
Fatcow indicates that they are running PHP 5.3
Any thoughts on why this would happen?
File below -
<?php if (!defined('DATATABLES')) exit(); // Ensure being used in DataTables env.
/*
* DB connection script for Editor
* Created by http://editor.datatables.net/generator
*/
// Enable error reporting for debugging (remove for production)
error_reporting(E_ALL);
ini_set('display_errors', '1');
/*
* Edit the following with your database connection options
*/
$sql_details = array(
"type" => "Mysql",
"user" => “bryan”,
"pass" => "password",
"host" => “bryanforsyth.fatcowmysql.com”,
"port" => "",
"db" => "stms_dev_3292017”,
"dsn" => "charset=utf8"
);
This question has an accepted answers - jump to answer
Answers
I copied your script into a text editor to see this. But some of your quotes
"
are different. For example around bryan you have“
and”
which appear to be the syntax error. They appear in a couple other spots. I think changing them to"
should resolve the issue.You can easily see this in a programming type editor that shows syntax.
Kevin
Good spot.
That was it. Thanks, good spot indeed. Not sure where those came from, been using Atom for my editing, but did make some mod's once uploaded via filezilla.
I'll stick to a single editor.
Best
Bryan