Cypris

Cypris

Joined
Oct 30, 2008

Activity Stream

Cypris commented on a Page, Basic mIRC Based Web Server  -  Oct 30, 2008

Okay.. Now this is a few years old, and mIRC has had a few newer releases since then, but i dont think much has changed that would affect what your script does or how it processes. However, besides the fact it doesnt follow one bit of HTTP Protocol (RFC 2616 roughly). This is a "dumb" webserver at best and thats not meant to be disrespectful or name-calling. DUMB meaning it doesnt know any better...

Remove the idea that this is a "web servers" (or HTTPd) for one second:
-its not processing the SOCKREAD. Why? Because SOCKLISTEN's code contains a sockclose. once you issue this, the socket is dead.

And did anyone notice the ON LOAD isnt written right? if it did, it would set the temp html code and show you the help after you saved it.

Now put back in the idea its a "web server". Doesnt follow protocol, doesnt care what the browser sends it, doesnt send the browser a header, doesnt handle links (add one, unless the page exists on another server, it wont work, it just loads the same code over and over again. So yay, single page website! Im not sure what to call this besides poor, clearly untested coded that was whipped up in a hurry.

Sorry to be such an asshole, but you didnt even script the sockets properly. read up on it. (and the http communication method while your at it)

-Cypris

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.