Hey, first time here.
I am getting parse errors on my Digital Ocean Apache server, but not on my local XAMPP server. I checked the PHP versions, and they are both PHP 7. The error states, “Parse error: syntax error, unexpected '”', expecting ‘-’ or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /var/www/[mywebsite]/index.php on line 44". I get no errors whatsoever on my local server, even thought the code is the exact same! I checked the other pages on the site, and the ones without PHP code work flawlessly (just a PHP issue). I am at a loss. Any help is appreciated. Thank you!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @ryanmichaelcurry
Can you paste the content of the index.php file so we can check it for you? You can review the code and make sure that you have ; at the end of each statement as well.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.