PDA

View Full Version : Getting host name in VB script


islandcommuter
08-22-2008, 09:19 PM
Hi,

I'm thinking that the php $_SERVER['HOST_NAME'] will not work in vb script. Is there a vb tag for getting this info?

Thanks,

Phil

Opserty
08-22-2008, 09:34 PM
Why don't you try it and find out first? ;)

islandcommuter
08-22-2008, 09:48 PM
I did try it and while I didn't get an error, I didn't get any value either. :)

Now, this could be caused by my 'intermediate novice' php skills... but I see in the docs that other globals like $_GET and $_REQUEST are not permitted. So, not finding an definitive answer anywhere, I'm asking here.

Just trying to avoid a lot of debugging if, in fact, my syntax is wrong.

Opserty
08-22-2008, 10:08 PM
...
Edit: After checking the PHP manual I see no predefined variable called $_SERVER['HOST_NAME']. Maybe you have confused it with something?

islandcommuter
08-22-2008, 10:52 PM
Yes, it works. I had it in the wrong place. :eek:

Thanks for your help!