Parse error: syntax error, unexpected '.', expecting
我收到这个错误
Parse error: syntax error, unexpected '.', expecting '}' in /home/l2hantol/public_html/acp/core.php on line 37
37 号线
function testServer($hostname,$user,$password,$database) {
try {
$handler = new PDO("mysql:host={$myip.zapto.org};dbname={$gameserver}",$root,$mypassword);
$handler = null;
return true;
} catch (PDOException $e) {
return false;
}
}
// Classes
class template {
public $template;
function load($filepath) {
$this->template = preg_replace("#\{(.*)\}#","<?php echo $1; ?>",file_get_contents($filepath));