Skip to main content
Dave_Draws
Inspiring
April 27, 2025
Answered

Dreamweaver seems to report valid PHP code as a syntax error

  • April 27, 2025
  • 2 replies
  • 745 views

In Dreamweaver, I have the following function:

This function, and the whole file that contains it, runs without error on my server, so I believe it is valid PHP code.

However, Dreamweaver is displaying errors, claiming there is a syntax problem.

I believe the syntax I'm using is valid since PHP version 7 or 8. Dreamweaver seems to only reference PHP 5.6 or 7.1. I have selected for Dreamweaver to reference PHP 7.1, but this has not made a difference.


Why is Dreamweaver marking my code as incorrect? Is the PHP in some way non-standard, even though it works? Or is this a limitation of Dreamweaver?

Correct answer Ben M

This is a limitation of DW. Currently it is in minimal maintenance mode only receiving critical updates and hasn't been getting updated with PHP as the current version is 8.4. If you need to recommend a code editor, you could use VS Code or Nova (Mac only) as a more advanced editor.

2 replies

Nancy OShea
Community Expert
Community Expert
April 28, 2025

Use a PHP IDE that's in active development alongside Dreamweaver.

 

PHP Storm by JetBrains offers a 30-day free trial.

https://www.jetbrains.com/phpstorm/

 

 

 

Nancy O'Shea— Product User & Community Expert
Ben MCommunity ExpertCorrect answer
Community Expert
April 27, 2025

This is a limitation of DW. Currently it is in minimal maintenance mode only receiving critical updates and hasn't been getting updated with PHP as the current version is 8.4. If you need to recommend a code editor, you could use VS Code or Nova (Mac only) as a more advanced editor.

Dave_Draws
Inspiring
April 28, 2025

I was completely unaware Dreamweaver is not being actively maintained.

 

Is Adobe going to discontinue it?

I have used VS Code, but it's not for me. I liked Atom, but that was also discontinued.

BenPleysier
Community Expert
Community Expert
April 28, 2025

Try Wappler instead. Here I start a new NodeJS project and create the databas and tables:

https://youtu.be/kCPU6dN7riU?si=McdOBoP8mGQlJiwZ

 

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!