RE: checking for active links/pages (OT)
I may be reading this wrong, but apparently they changed files on the server so they no longer match what you have in the development server? If so, just use one of the freeware programs that can sync 2 directories.. instead of synching, they also can compare 2 directories. Just look for files that are different on the server than on your development machine. I have used Synchbase for this http://www.2brightsparks.com/downloads.htmlhttp://www.2brightsparks.com/downloads.html At 12:06 PM 12/8/2010, you wrote: You could write something that parses out cfm files looking for the cflocation, cfinclude and a href tags and grab the filenames. Then you could filter that to be a distinct list. Then as everyone else suggested, search the logs to see if they have been hit recently. Steve -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: Wednesday, December 08, 2010 11:12 AM To: cf-talk Subject: checking for active links/pages (OT) I'm working on a website where they've done some development work on the production server and I'm trying to clean it up. Does anyone have any ideas on how they would accomplish this aside from opening up each and every file and checking for cfinclude cflocation and a href tags? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339930 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
checking for active links/pages (OT)
I'm working on a website where they've done some development work on the production server and I'm trying to clean it up. Does anyone have any ideas on how they would accomplish this aside from opening up each and every file and checking for cfinclude cflocation and a href tags? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339909 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: checking for active links/pages (OT)
For links in pages Use a link checker service such as http://validator.w3.org/checklink/ For cfincludes and the likes, if they contain invalid path then the page would throw an error, so you should check your coldfusion logs for errors and resolve them, which you should be doing regularly anyway. Russ -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: 08 December 2010 16:12 To: cf-talk Subject: checking for active links/pages (OT) I'm working on a website where they've done some development work on the production server and I'm trying to clean it up. Does anyone have any ideas on how they would accomplish this aside from opening up each and every file and checking for cfinclude cflocation and a href tags? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339911 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: checking for active links/pages (OT)
I'll check out the link thanks, checking logs wouldn't help. On the server their might be a header2.cfm and a header10232010.cfm. The header10232010.cfm is never used so it wouldn't show up in the logs but it's an inactive page that I'd like to remove. On Wed, Dec 8, 2010 at 10:18 AM, Russ Michaels r...@michaels.me.uk wrote: For links in pages Use a link checker service such as http://validator.w3.org/checklink/ For cfincludes and the likes, if they contain invalid path then the page would throw an error, so you should check your coldfusion logs for errors and resolve them, which you should be doing regularly anyway. Russ -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: 08 December 2010 16:12 To: cf-talk Subject: checking for active links/pages (OT) I'm working on a website where they've done some development work on the production server and I'm trying to clean it up. Does anyone have any ideas on how they would accomplish this aside from opening up each and every file and checking for cfinclude cflocation and a href tags? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339912 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: checking for active links/pages (OT)
Actually neither of those would work because I'm not checking to see if the links are valid, I would like to return a list of all .cfm files that are used within a website. Maybe that's a better way of stating what I'm trying to do. On Wed, Dec 8, 2010 at 10:44 AM, Greg Morphis gmorp...@gmail.com wrote: I'll check out the link thanks, checking logs wouldn't help. On the server their might be a header2.cfm and a header10232010.cfm. The header10232010.cfm is never used so it wouldn't show up in the logs but it's an inactive page that I'd like to remove. On Wed, Dec 8, 2010 at 10:18 AM, Russ Michaels r...@michaels.me.ukwrote: For links in pages Use a link checker service such as http://validator.w3.org/checklink/ For cfincludes and the likes, if they contain invalid path then the page would throw an error, so you should check your coldfusion logs for errors and resolve them, which you should be doing regularly anyway. Russ -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: 08 December 2010 16:12 To: cf-talk Subject: checking for active links/pages (OT) I'm working on a website where they've done some development work on the production server and I'm trying to clean it up. Does anyone have any ideas on how they would accomplish this aside from opening up each and every file and checking for cfinclude cflocation and a href tags? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339913 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: checking for active links/pages (OT)
Actually neither of those would work because I'm not checking to see if the links are valid, I would like to return a list of all .cfm files that are used within a website. Maybe that's a better way of stating what I'm trying to do. Depends on how much time you want to dedicate to this you can: - find out what .cfm files are access from the logs; - find out what CF files are access by parsing the compiled CF classes after starting with an empty cfclasses directory (each compiled class contains the name of the CF source file - .cfc or .cfm) Creating a list of all the files and the removing the ones that are present in the above 2 lists will give you hopefully a much shorter third list of files that you can check manually to see if they are used. -- Mack ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339915 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: checking for active links/pages (OT)
You could write something that parses out cfm files looking for the cflocation, cfinclude and a href tags and grab the filenames. Then you could filter that to be a distinct list. Then as everyone else suggested, search the logs to see if they have been hit recently. Steve -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: Wednesday, December 08, 2010 11:12 AM To: cf-talk Subject: checking for active links/pages (OT) I'm working on a website where they've done some development work on the production server and I'm trying to clean it up. Does anyone have any ideas on how they would accomplish this aside from opening up each and every file and checking for cfinclude cflocation and a href tags? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339916 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm