The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Getting host name in VB script
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 |
#2
|
|||
|
|||
Why don't you try it and find out first?
|
#3
|
||||
|
||||
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. |
#4
|
|||
|
|||
...
Edit: After checking the PHP manual I see no predefined variable called $_SERVER['HOST_NAME']. Maybe you have confused it with something? |
#5
|
||||
|
||||
Yes, it works. I had it in the wrong place.
Thanks for your help! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|