Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Why do links not update in php code

Engaged ,
Jan 12, 2014 Jan 12, 2014

Copy link to clipboard

Copied

Today I moved three files from one folder to another in the DW files window  using drag and drop.

I was asked if I wanted the links to change and said yes. When I had done this, all links contained within PHP code remained unchanged but any in html changed as expected.

For instance, I would expect :

echo" <td><a href=\"./help.php\">help</a></td>  </tr>"

to change to:

echo" <td><a href=\"../help.php\">help</a></td> </tr>" when moved down in the folder list

But this did not happen.

If I save the file to another location, all links are updated regardless of their being in PHP or HTML

Is there a setting that allows this to work from the files window?

I am using CS6 in Win 8.1.

I do not remember this problem in CS 5.5 in Win 7.

Howard Walker.

TOPICS
Server side applications

Views

560
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jan 12, 2014 Jan 12, 2014

Copy link to clipboard

Copied

LATEST

It makes sense that DW would not update links in PHP files.

1. DW has basic PHP syntax checking but is not a PHP interpreter.

2. Link Relative relationships in PHP files don't follow exactly the same rules as HTML

3. Variables are often used in PHP urls, such as to define the server address, the directory, and url parameters. DW would be unable to interpret these.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines