Product Broken Links

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Product Broken Links

Post by dude81 »

Hi
What do we do to findout a broken links in a product especially where anchor tags references to images(names come from db) and files, xmlHttpRequestobj calls. Also the major problem I see is we've used templates like smarty engine to encode directory paths and Zend Framework. I've done a search in the forum , I got two links but both of them dont support my need.
http://forums.devnetwork.net/viewtopic.php?t=44055
I would like to see one script generating all the broken link report
Anyhelp on this is appreciated.

Thank You
dude81
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

I wouldn't have thought this would be necessary if you have some sort of defined workflow in your admin system, with some quality assurance procedures (eg testing). If your image names are coming from a database then someone or something must be putting them in there. When they're entered they should be checked. After that there's no reason why they'd just break without someone changing something. Same goes for files.

As for xmlHttpRequest object calls ... that must be part of someone's code. If you're trying to automate testing of that then you must be rolling out services without testing them at all. Major alarm bells should be going off in your organisation if you're putting code live without any developer/tester interaction at all. You might be opening up massive security issues.
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

I would fully agree with you onion2k that testing should be done well before the release and we're doing that.

The broken link reports is something that we needed additionally(not to take a chance on anything), for example a code that works on windows perfectly doesn't work same on Linux box, like naming Conventions on linux could be a block for frameworks.

I needed a PHP script which would do this for me whenever I deploy the product on different environments and generate a report
Post Reply