I have a section of code I use on my server running Commercial Version 5.00.1086121238 20040601 (i686-unknown-linux2.4.9-64-32) that gets a list of all of the URLs in an html file and makes it a live link in what is put to the screen. When I copy the small bit of coded to my other server running Texis Commercial Version 6.00.1288082496 20101026 (x86_64-unknown-linux2.6.9-64-64), it doesn't work properly. The DUMP doesn't seem to have anything in it. Is there a difference in the 2 versions that would cause this small bit of code to work incorrectly on one and not the other?
Here is what is looks like. $ret to start is the file.
<$HYPRVAL = $ret>
<rex ">>http=s?://=![\x20\x0A\x0D]+[\x20\x0A\x0D]" $HYPRVAL >
<xtree INSERT $ret >
<xtree ROW DUMP >
<$ZZrcount = $ret.count>
<$ZZFOUND = $ret>
<if $ZZrcount gt 1>
<$DupURL = "YES" >
<$MutipleURL = $MutipleURL $ZZFOUND >
</if>
<$ZTMP = ( "Click this link: <a href=" + $ZZFOUND + ' target="_blank" >' + $ZZFOUND + "</a>" ) >
<sandr $ZZFOUND $ZTMP $HYPRVAL >
<$HYPRVAL = $ret >
</xtree>
<xtree CLEAR>
<send $HYPRVAL >
I have also try it with loop instead of the xtree loop. It acts the same.
Here is what is looks like. $ret to start is the file.
<$HYPRVAL = $ret>
<rex ">>http=s?://=![\x20\x0A\x0D]+[\x20\x0A\x0D]" $HYPRVAL >
<xtree INSERT $ret >
<xtree ROW DUMP >
<$ZZrcount = $ret.count>
<$ZZFOUND = $ret>
<if $ZZrcount gt 1>
<$DupURL = "YES" >
<$MutipleURL = $MutipleURL $ZZFOUND >
</if>
<$ZTMP = ( "Click this link: <a href=" + $ZZFOUND + ' target="_blank" >' + $ZZFOUND + "</a>" ) >
<sandr $ZZFOUND $ZTMP $HYPRVAL >
<$HYPRVAL = $ret >
</xtree>
<xtree CLEAR>
<send $HYPRVAL >
I have also try it with loop instead of the xtree loop. It acts the same.