No purebasic but html question(no idea what forum to choose)

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
J@ckWhiteIII
Enthusiast
Enthusiast
Posts: 183
Joined: Fri May 25, 2012 7:39 pm

No purebasic but html question(no idea what forum to choose)

Post by J@ckWhiteIII »

Hey,
no idea whether this belongs here or not, but. Is it possible to connect with HTML to a server created with purebasic? If yes, how? i hope somebody can help here. Thanks. if you have questions, just ask
citystate
Enthusiast
Enthusiast
Posts: 638
Joined: Sun Feb 12, 2006 10:06 pm

Re: No purebasic but html question(no idea what forum to cho

Post by citystate »

do you mean connecting with an internet browser to a PB server? if so, have a look at Atomic webserver - it is included in the PB examples.
otherwise, it's just a matter of setting your PB server to listen on a specific network port (80 for standard HTTP, but you can choose pretty much any one you like)
there is no sig, only zuul (and the following disclaimer)

WARNING: may be talking out of his hat
User avatar
J@ckWhiteIII
Enthusiast
Enthusiast
Posts: 183
Joined: Fri May 25, 2012 7:39 pm

Re: No purebasic but html question(no idea what forum to cho

Post by J@ckWhiteIII »

I looked at the atomic web server, but i don't understand what it does. If i'm not mistaken, it waits until somebody connects on the server and then does the stuff at the gosub.
Now my question is: What do i have to do in the html file to connect to the server?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: No purebasic but html question(no idea what forum to cho

Post by rsts »

J@ckWhiteIII wrote: Now my question is: What do i have to do in the html file to connect to the server?
Do you mean - enter the ip address and port on which the server is running/serving?
User avatar
J@ckWhiteIII
Enthusiast
Enthusiast
Posts: 183
Joined: Fri May 25, 2012 7:39 pm

Re: No purebasic but html question(no idea what forum to cho

Post by J@ckWhiteIII »

Exactly, exactly that's what I don't know how to do
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: No purebasic but html question(no idea what forum to cho

Post by rsts »

That's normally a function of the browser. You would merely enter the ip address/port in the browser. The html file would be "served" from the server TO an IP address.

Are you using a PB web gadget?
User avatar
J@ckWhiteIII
Enthusiast
Enthusiast
Posts: 183
Joined: Fri May 25, 2012 7:39 pm

Re: No purebasic but html question(no idea what forum to cho

Post by J@ckWhiteIII »

Aaaaaaaah now I understand it better, I think :)

No, not a web gadget. why?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: No purebasic but html question(no idea what forum to cho

Post by rsts »

J@ckWhiteIII wrote:
No, not a web gadget. why?
A webgadget can request a specific ip/port serve to it.
cheers
User avatar
J@ckWhiteIII
Enthusiast
Enthusiast
Posts: 183
Joined: Fri May 25, 2012 7:39 pm

Re: No purebasic but html question(no idea what forum to cho

Post by J@ckWhiteIII »

Just another quick question: The standart port in Atomic Web Server is 80. But if I try to compile, it says the port is in use? I thought 80 was made for HTTP, so I wonder...why is the port in use?
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: No purebasic but html question(no idea what forum to cho

Post by Shield »

Let me guess...using Skype?
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
J@ckWhiteIII
Enthusiast
Enthusiast
Posts: 183
Joined: Fri May 25, 2012 7:39 pm

Re: No purebasic but html question(no idea what forum to cho

Post by J@ckWhiteIII »

Yep, skype
User avatar
J@ckWhiteIII
Enthusiast
Enthusiast
Posts: 183
Joined: Fri May 25, 2012 7:39 pm

Re: No purebasic but html question(no idea what forum to cho

Post by J@ckWhiteIII »

Does the whole thing only work for me (on my computer)? Testing with a buddy didn't work, so I'm wondering how to get the whole thing on the web (if that's not possible, my question was stupid...).
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: No purebasic but html question(no idea what forum to cho

Post by Shield »

For some reason Skype is using port 80 for itself (at least it was),
but you can change that.

And in order to get this to work from your computer you need to set up your router
properly, forwarding traffic on port 80 to your computer and also you need to make sure
the firewall and anti-virus applications aren't causing problems.
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
J@ckWhiteIII
Enthusiast
Enthusiast
Posts: 183
Joined: Fri May 25, 2012 7:39 pm

Re: No purebasic but html question(no idea what forum to cho

Post by J@ckWhiteIII »

Ima work on it.
Thanks for your help.
Post Reply