Posts: 437
Threads: 32
Joined: Mar 2004
I wish to make my own web server in FreeBasic. Anyway todo so I need to know how to I listen for packets coming in on certain ports. Could someone give me some basic information on doing this.
Posts: 1,439
Threads: 15
Joined: Apr 2003
Posts: 838
Threads: 17
Joined: Jan 2002
Hahah, what a coincidence. Check my thread in the fb projects forum, "Http webserver using winsock"
It has source included, you're welcome to steal with arms and legs, just give credit if you do
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta
Posts: 437
Threads: 32
Joined: Mar 2004
Quote:Hahah, what a coincidence. Check my thread in the fb projects forum, "Http webserver using winsock"
It has source included, you're welcome to steal with arms and legs, just give credit if you do
LOL, I want a web server for script testing that is customised to my liking, so I decided to write my own as I have not yet come across a windows web server meeting 100% of my requirements.
Posts: 838
Threads: 17
Joined: Jan 2002
Well, if you figure how to pass $_POST vars, $_COOKIE vars, and proper $_SERVER vars to php.exe, please tell me. I've been hunting the net for info on this, without luck. Only option seems to be to use the php sapi dlls (Yes, I'd like to be proved wrong on this).
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta
Posts: 437
Threads: 32
Joined: Mar 2004
Quote:Well, if you figure how to pass $_POST vars, $_COOKIE vars, and proper $_SERVER vars to php.exe, please tell me. I've been hunting the net for info on this, without luck. Only option seems to be to use the php sapi dlls (Yes, I'd like to be proved wrong on this).
If I could be bothered I would wade through the apache source for things like that.
Posts: 838
Threads: 17
Joined: Jan 2002
Apache uses special dlls for php.
And, if you want to test scripts, you will need to figure this
Unless you only want to use get vars, and for most things, you dont.
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta
Posts: 4,307
Threads: 63
Joined: May 2003
jatos, why dont you just use apache? You could modify and recompile it as per your needs.
Posts: 437
Threads: 32
Joined: Mar 2004
Quote:jatos, why dont you just use apache? You could modify and recompile it as per your needs.
I'd much rather be using programs written in BASIC as I am more familiar with BASIC.
Posts: 4,307
Threads: 63
Joined: May 2003