Jump to content

Recommended Posts

Posted (edited)

hi

works fine for me

somehow traytip wont work for me?

i added

TrayTip("AutoIt Web Server", "Server created on http://" & $IP & "/",10)

MsgBox(0x20, "AutoIt Web Server", "Server created on http://" & $IP & "/")

...

Case ".css"

_SendFile($sRootDir & "\" & $Request, "text/html", $Socket[$x])

TrayTip("AutoIt Web Server", "Server created on http://" & $IP & "/",10)
sleep(3000)
MsgBox(0x20, "AutoIt Web Server", "Server created on http://" & $IP & "/")

Edit: oh, sorry:P Old topic xD

Edited by Chris86
  • 1 month later...
Posted (edited)

As promised :D

This is the orginal (as far as I know.)

Server_Original.zip

This is my example on using sessions, and expanding it to being more webserver like. Expanded may be a bit buggy. But I don't care because the expanded is just an example of how it can be expanded. Please don't be stupid enough to use it as a real server or even a testing one. Use something tried and tested like Apache, Abyss etc...

Server_Sessions.zip

Edited by BrettF
  • 2 weeks later...
  • 4 months later...
Posted

I've made an update.

Changes:

- Changes some function names to follow some UDF standards

- Variable names more descriptive (and less confusing)

- Split up the server into 3 parts: Basic server, post server, session server

- Added some documentation, including "How to choose the right server".

- Put my website in the /www/ folder as an example.

- With the POST example some AJAX is included for great success.

Please check it out again when you have an interest and when you have time.

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...