Page 1 of 1

PHP Parse error

Posted: Wed Jul 29, 2020 6:32 pm
by luishmpaulo
Hello people.

A small problem on a form page: when we try to access it we see the error message

"PHP Parse error: syntax error, unexpected '[' in \\ WINDOWS-PD-0001.FS.LOCAWEB.COM.BR \ WNFS-0001 \ assetramed1 \ web \ PHPMailer.php on line 166 "

The strange thing is that the same page when hosted on another host works correctly: https://ophicina.net.br/assetramed/Agendamentos.php

Do you know what I can do?

P.S.: I didn't move or program anything different - I don't even know how to program ...

Re: PHP Parse error

Posted: Wed Jul 29, 2020 8:33 pm
by Pablo
This is most likely relates to the PHP version on the server.
PHP mailer requires PHP 5.5 or newer.