But would it not be better if it "scans" the root folder?
I mean something like:
Code:
if pagetoget > "0" then
scan drive for files script
if scanned file= pagetoget then
load file into a string
else
goto errorpage:
end if
end if
Would not his be better than a list?
I will work on this....
To make is as simple as possible..(and working, hehe)
Thanks for your tips in your above post..sure i will use some of that...
1 Attachment(s)
Guess You'll like this way too...
Here is a fully working server..with FILE SEARCHING..
I must modify the script some ..inorder to get rid of some BUGS i have found...
Also i need to solve how to get it to accept things like pictures..
I mean, how to get it to send pictures to explorer..
But check it out..
Buggy... Have you done this?
Have you unzipped ALL the files from the folder?
And put ALL the files in the same folder..
Then "render" the Httpserver.exe (or whatever name you choose)
then close VB5 or 6
run the HTTPserver from its folder..
Press the TEST locally Button...
If it doesnt work then... try this in explorer
http://localhost (just plain localhost as i wrote it)
you can also try: http://yourmachinename
PS: download the latest server i made...
1 Attachment(s)
Well..all bugs are gone(except files) and...
I have made it look better...also I have made it support MULTIPLE domain names...
So if you have:
mydomain1.com
mydomian2.com
mydimoan3.com
which all points to your machine (EG: using DNS2GO.COM)
Then you can make D1.com show one page and D2.com show another....
Read the HELP inside the server (there is a button you can press)
I need some help on sending files (pictures zip or so..but the rest is working fine)
Download the NEW version below!
1 Attachment(s)
Here we GO...everything WORKS..files to!!
I've got it working ..finally...
So now its a multidomain server, supports (my own) cgi
Support downloading of files from server...
Supports pictures in the sites..
So now...Everything is cool..
Maybe I should work on the design..Or some more "cgi" stuff...
So that you can have a script OUTSIDE the server
which contains "script" commands...
EG: #IP# = winsock1.localip
This must be possible...
OK...Anyway Enjoy the fully working SERVER !!
(download below)
Hehe...very glad you liked my code...
Why was the FOLDER EXIST error so funny?
Havent you seen the error if you request a page that doesnt exist...
Or if you request a folder that doesnt exists..(didnt care to make those errortrappers a big deal..)
About the PHP thing...Im NOT into PHP...(sorry)
I don't know a single word(read: codeline) of PHP...
I only know: HTML,DHTML,ASP,JAVA,JAVASCRIPt,BASICVBSCRIPT,VB6.0
OK...but If you want any special functions that PHP can do..then I'll try to make that...
Have you tried it with multiple domains yet?
And your hiding code, does it make a icon in the Tray...??
If not,then I can add the old code and make it work correctly..
If you give me a list of the PHP codes you want...
..and the function they have...
Like: if you write %remote load file% in a homepage ,Than this means that you want that file to open so that you can pass it some info..(then I can create those functions..)
Like i made the #NOW# which is similar to VBScript's <%Now%>
I can do that if you give me the commands you need and what they do...
EG: &Bloody.Mary& writes BlOoDy-MaRy on the homepage...
Whatever..as long as i know what it is supposed to do...
I should be able to make it...
OK... so you wanna hide the server..HEHE..
Well..Maybe you should make those errors appear on BLUE screen like:
0x00011111:fffgacg123 Cannot load int.vxd
LOL !!
1 Attachment(s)
Logging has been fixed..and it logs timestamp and ip..
I will soon intnerggrate that into the main window of the server aswell...
But here it is...with logging.. If you move or delete the log file then it will simply create another one..with the same name...
It creates it in the app folder..
Ehh... what language do your server support?
Quote:
Originally posted by Hampster
Thanks :D
Updated the code for the scripting runtime :)
What languages does this server support?
I tried standard ASP code...But...
Code:
<%
NOW 'and i tried TIME
%>
And I got: ERROR IN 0
Can you make it support REGULAR asp language (VBScript??)
Is that possible...?
PS: there is ONE button you should have added to your form!
the button I have in mine, to TEST locally!
But I liked your code! And your server! Very good indeed!