sunnyj58
sunnyj58

Reputation: 103

How to install Mail.php with Pear and XAMPP?

I'm really struggling to get a local build of a php website running. The code is quite messy, and very dated. It is being upgraded from PHP5 to PHP8. I'm running Windows, and trying to get the code working using XAMPP. However, when I run the server I get an issue saying that Mail.php failed to open for inclusion. I checked Pear under the XAMPP folders and Mail doesn't seem to be there. I tried to use the XAMPP shell to install Mail, but this gives me an error saying -

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in...

I'm not sure what to do here to get a build up and running, I'm new to PHP and have very little support. Can someone please give me a simple explanation on what I want to upgrade/do to get the code running on Windows?

Thanks

Upvotes: 0

Views: 22

Answers (0)

Related Questions