Link to home
Start Free TrialLog in
Avatar of jmullaney
jmullaney

asked on

Dreamweaver says file is an Orphan when it's really not.

I've taken over an existing PHP site and I'm trying to find orphaned files.  I used the Check Links Sitewide feature in Dreamweaver 8.02, but it doesn't seemd to recognize an href link in a php block, so it sees a file as orphaned when it's really not an orphan.  Can someone tell me how to use this feature differently/correctly, or point to some other tool that can do the job?
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

As far as I know Dreamweaver can only check html  code links, it doesn't understand php or any links that may be defined inside code fragments and databases (several of my sites use database to display images but dreamweaver cannot know that and finds all the images as orphans.
the other tools I've used also only do html
Avatar of jmullaney
jmullaney

ASKER

What gives me hope the DW can (maybe) recognize the href links in php blocks is the fact that it DOES recognize include files within php blocks.   If file X is included in file Y (within file Y's php block) then DW will warn me about that link if I try to delete file X.
>> it doesn't understand php or any links that may be defined inside code fragments and databases

The above is 100% correct.
>> it DOES recognize include files within php blocks

DW's ability to recognize things is limited.  It uses regular expressions to see the links and those are set to ignore most PHP code.  The includes are a special case, as DW will recognize <?php include(); ?>

But if you have code dynamically generating the entire <a href> tag, no luck.
Thanks for info everybody.
It sound like I won't be able to use DW to check for orphan files.
Does anybody know of another tool I can use?
ASKER CERTIFIED SOLUTION
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial