We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

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

jmullaney
jmullaney asked
on
826 Views
Last Modified: 2013-12-13
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?
Comment
Watch Question

CERTIFIED EXPERT

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

Author

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.
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
>> it doesn't understand php or any links that may be defined inside code fragments and databases

The above is 100% correct.
Jason C. LevineDon't talk to me.
CERTIFIED EXPERT

Commented:
>> 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.

Author

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?
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.