Join David Powers for an in-depth discussion in this video Setting the version of PHP for an individual site, part of Dreamweaver CC New Features.
In the previous video,…I changed the default version of PHP…in preferences to PHP 7.1,…and I've opened a file called destructure.php…which contains a short script that uses…the feature that's new to PHP 7.1.…As these results in live view clearly show,…I'm using valid syntax, the script is running fine.…But down here in code view, the line number for line 7…has turned red and if I mouse over it,…we get an error message, syntax error,…unexpected left square bracket.…
Dreamweaver's syntax checker is objecting to this structure.…Here I'm using the shorthand array structure…inside a foreach loop, and this is a technique…which is known as array destructuring assignment.…It's new to PHP 7.1, and it's a shorthand way of assigning…keys of this multi-dimensional array to new variables.…So why is Dreamweaver displaying a false error…message even though I set the default PHP…version in preferences to 7.1?…Well, the answer is that each individual site…can have its own level of PHP syntax checking and COTense.…
So we need to go to the site definition.…
- Restricting the scope of a quick search
- Finding and replacing more selectively
- Advanced find and replace in a specific tag
- Setting the default version of PHP in Preferences
- Applying a link to selected text in Live View
- Changing information displayed in the Files panel
Skill Level Intermediate
Q: This course was updated on 10/18/2017. What changed?
A: The following topics were updated: find and replace and PHP support. In addition, new videos were added that cover code view improvements, Real-Time Preview, and CSS preprocessor integration.
Q: This course was updated on 03/30/2018. What changed?
A: New videos were added that cover using Bootstrap 4 and switching to Bootstrap 3.