I'm currently generating a long page using PHP. The page also requires parameters:
http://host/showFile.php?file=abc
The resulting page can be quite lengthy and I would like to extend this to position the page at a specific line. I know how to do this using and adding #tag to the URL for an HTML file, but I can't see how to combine the effect in this case. Putting
http://host/showFile.php#tag?file=abc
doesn't work, as PHP doesn't see the file= argument, putting
http://host/showFile.php?file=abc#tag
also doesn't work as it assumes the file is then abc#tag.
I could put:
http://host/showfile.php?file=abc&line=tag
and change my code to start at the required line, but this would only show the page from the required point onward, and I need to have the whole file viewable by scrolling back.
Any ideas?
Thanks, Bill