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?
jmullaneyAsked:
Who is Participating?
 
Peter HartCommented:
well - if it could be done Dreamweaver would have done it.
as aside have you looked at googles free webmaster tools
http://www.google.co.uk/webmasters/

but you can try ...

http://www.relsoftware.com/wlv/help/how-to-perform-orphan-analysis/
0
 
Peter HartCommented:
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
0
 
jmullaneyAuthor Commented:
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.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Jason C. LevineNo oneCommented:
>> it doesn't understand php or any links that may be defined inside code fragments and databases

The above is 100% correct.
0
 
Jason C. LevineNo oneCommented:
>> 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.
0
 
jmullaneyAuthor Commented:
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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.