LoadBank() with localhost

BlitzMax Forums/BlitzMax Beginners Area/LoadBank() with localhost

I've been trying to use the following code to integrate my PHP application with my Blitz game:

file=ReadFile(LoadBank("http::localhost/~myname/tools"))

If Not file RuntimeError "could not open file openfile.bmx"

While Not Eof(file)
	Print ReadLine(file)
Wend

CloseStream file


The problem is that the Apache server installed to Mac OS X is configured to use the ~ symbol to access the local host, but BlitzMax will not allow the use of the ~ symbol in LoadBank(). Does anyone know a way around this?