Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Freebasic Web Server - basic help needed
#1
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.
atos-Software
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.
[Image: 42-r]
Reply
#2
Maybe this would be helpful:

http://www.freevbcode.com/ShowCode.asp?ID=4415
Reply
#3
Hahah, what a coincidence. Check my thread in the fb projects forum, "Http webserver using winsock" Tongue

It has source included, you're welcome to steal with arms and legs, just give credit if you do Wink
url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
Reply
#4
Quote:Hahah, what a coincidence. Check my thread in the fb projects forum, "Http webserver using winsock" Tongue

It has source included, you're welcome to steal with arms and legs, just give credit if you do Wink

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.
atos-Software
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.
[Image: 42-r]
Reply
#5
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
Reply
#6
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.
atos-Software
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.
[Image: 42-r]
Reply
#7
Apache uses special dlls for php.

And, if you want to test scripts, you will need to figure this Wink Unless you only want to use get vars, and for most things, you dont.
url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
Reply
#8
jatos, why dont you just use apache? You could modify and recompile it as per your needs.
Reply
#9
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.
atos-Software
http://www.datacentertalk.com - interested in how web hosting works? Here the place to go to find out.
[Image: 42-r]
Reply
#10
right...:roll:
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)