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));