###前提・実現したいこと
Windows 10 64bit
Apache 2.4.27
PHP Version 7.1.8
Chrome
上記の環境で
http://localhost/index.php
を読み込み、エラーなく正常に動作させたいです。
###発生している問題・エラーメッセージ
Parse error: syntax error, unexpected 'new' (T_NEW) in C:\Apache24\htdocs\index.php on line 87
###該当のソースコード
86・87行目に該当するのはこれです↓ // オブジェクトの生成 $smarty=& new smarty();
###試したこと
①「new」を消してみると次のようなエラーが出ました。
Notice: Undefined offset: 0 in C:\Apache24\webprg\plugins\config.php on line 8
Notice: Undefined variable: AP_View in C:\Apache24\htdocs\PostGet.php on line 112
Fatal error: Uncaught Error: Call to undefined function smarty() in C:\Apache24\htdocs\index4.php:87 Stack trace: #0 {main} thrown in C:\Apache24\htdocs\index4.php on line 87
②「&」を消してみたら次のようなエラーが出ました。
Notice: Undefined offset: 0 in C:\Apache24\webprg\plugins\config.php on line 8
Notice: Undefined variable: AP_View in C:\Apache24\htdocs\PostGet.php on line 112
Notice: Undefined variable: debugging in C:\Apache24\htdocs\index4.php on line 94
Notice: Undefined property: Smarty::$ in C:\Apache24\webprg\plugins\Smarty\Smarty.class.php on line 705
Error!: SQLSTATE[IM002] SQLConnect: 0 [Microsoft][ODBC Driver Manager] �f�[�^ �\�[�X������юw�肳�ꂽ����̃h���C�o�[��������܂���B
###補足情報(言語/FW/ツール等のバージョンなど)
使用環境は上記前提条件の通りです。
プログラミング言語、Apache、PHP、Smartyともにあまり理解できていない状況ですが、ご協力よろしくお願いします。