I'm writing a simple web server...
I want to be able to send an HTML file to the client when they connect.
I have no idea how to do this- right now I'm using the code below to send an HTML "message" to the client. This displays ok in the browser- but I cannot link to other pages...
How do make it so that i can open an individual file off of the server (and send it to the client) instead of just a string coded into the source of the webserver?#code
$msg = "
Web Server Page
This page is generated by the server! I cannot figure out how to have
it link to a file!
0 · ·