Skip to main content
Participant
Nov 2, 2017 9:57 AM UTC
Answered

After opening .php file, Dreamweaver change the source code

Hi, when I open file html_output.php in Dreamweaver MX 6.1, the Dreamweaver change the source code

from (I can see it correct in PSPad editor) :

if ( ($params['type'] == 'button') && isset($link) ) {

to :

if ( ($params['type'] ']']== ']']==']=='button') && isset($link) ) {

I don't know why. When I save it, with changed text, then I will have error message for this line.

Thanks for help.

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Nancy OShea
    Nancy OSheaCorrect answer
    Community Expert
    Nov 2, 2017 10:39 PM UTC

    Which PHP versions do you have on your local and remote testing servers?  The current version is PHP 7 but if your web host hasn't upgraded yet, you're probably on 5.5 or 5.6 -- certainly NOT version 3.

    PHP: Migrating from PHP 5.6.x to PHP 7.0.x - Manual

    Nancy O'Shea— Product User & Community Expert

    3 replies

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    Nov 2, 2017 10:39 PM UTC

    Which PHP versions do you have on your local and remote testing servers?  The current version is PHP 7 but if your web host hasn't upgraded yet, you're probably on 5.5 or 5.6 -- certainly NOT version 3.

    PHP: Migrating from PHP 5.6.x to PHP 7.0.x - Manual

    Translate
    Nancy O'Shea— Product User & Community Expert
    Participant
    Nov 6, 2017 11:11 AM UTC

    I uninstall all servers etc for looking problem, but it was 5.5

    Translate
    pziecina
    Legend
    Nov 2, 2017 1:06 PM UTC

    I doubt if anyone will be able to help you with this problem, as Dw mx is now 15 years old, and whilst it should not rewrite your code, php 3 was the version supported in mx, and mx may not apply the re-write rules correctly.

    Translate