::Virtual Host Creator:: For Shorthand Fans !

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue May 11, 2004 5:52 pm    Post subject: ::Virtual Host Creator:: For Shorthand Fans ! Reply with quote

Hey , I just learned enough Shorthand programming language
to build my very first working code of the Shorthand version of
::Virtual Host Creator:: , this time the full code is written by me!

Here's my first code for
the shorhand version!

Name this [index.shh]
Code:

<~
Host = ENV("HTTP_HOST")
if Host = 'Domain1' then
redirect ("/path1")
elseif Host = 'Domain2' then
redirect ("/path2")
else
redirect ("/main.html")
end if
~>


Edit: This code will show the http://domain1/path1/
as the final result and their is no way to fix this !

This Project just didn't stand out to be a VHC :(
I will put this on the webpage just incase you want
to still use it as a redirect , their is a header() function
but that also gives the same results as redirect()


Last edited by TRUSTAbyss on Wed May 12, 2004 6:33 pm; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
nquin321
-


Joined: 29 Jan 2004
Posts: 296
Location: Right Behind You

PostPosted: Tue May 11, 2004 6:52 pm    Post subject: Reply with quote

nice, great job :)
_________________
How many forum members does it takes to change a light bulb?
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group