• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 774
  • Last Modified:

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?
0
jmullaney
Asked:
jmullaney
  • 2
  • 2
  • 2
1 Solution
 
chilternPCCommented:
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
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
chilternPCCommented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now