Skip to main content
Participant
November 2, 2017
Answered

After opening .php file, Dreamweaver change the source code

  • November 2, 2017
  • 2 replies
  • 404 views

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 has been closed for replies.
    Correct answer Nancy OShea

    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

    2 replies

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    November 2, 2017

    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
    Participant
    November 6, 2017

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

    pziecina
    Legend
    November 2, 2017

    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.