Hi, I've parsed some links from a website but the links are bad. The links are being parsed as <a href="../folder/file.html">blah</a> but that poses a problem. I need it to show the whole proper url. I know where ../ leads so I can replace it but how do I display the right path? What I need to do is get rid of the ../ and replace it with http://www.thesite.com/
I'm inlcuding the code so you can see what i'm doing. Thanks Phil <cfhttp URL=http://www.someurl.com/subfolder/file.html method="get"></cfhttp> <cfset start=find("content to start on",CFHTTP.FileContent,1)> <cfset EndOfFile=find("end of content,CFHTTP.FileContent,1)> <cfloop from=1 to=5 index=whatever> <cfif FindNoCase("<a",CFHTTP.FileContent,start) GT 0> <cfif FindNoCase("<a",CFHTTP.FileContent,start) GTE EndOfFile> <cfbreak> </cfif> <cfset start=FindNoCase("<a",CFHTTP.FileContent,start)> <cfset end=FindNoCase("</a>",CFHTTP.FileContent,start)+4> <cfset length=end-start> <cfoutput> #Mid(CFHTTP.FileContent,start,length)#<br> </cfoutput> <cfset start=end> </cfif> </cfloop> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Protect your mail server with built in anti-virus protection. It's not only good for you, it's good for everybody. http://www.houseoffusion.com/banners/view.cfm?bannerid=39 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183023 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

