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.
Copy link to clipboard
Copied
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.