If you have normal tagged hyperlinks, this should be fine and working.
HTML Code:
<a href="file.asp?798535">...</a>
Maybe try to access the given URL from the browser on the machine were you have phpdig installed on.
Can you give me a link to your dynamic site - or simply post the source code.