Well ya, just read my text and thought wow, what an awful question.

In your example you do something like:
networkId=HostNetwork("mynet",nickname$,ServerPort)
As far as I'm aware that's for creating a host. Some lines later you use the JoinNetwork commands which probably shall connect to your PHP server. So I just wondered what this HostNetwork command on the client side is for?