By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,186 Members | 1,530 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,186 IT Pros & Developers. It's quick & easy.

What is this? <img src="{$ ImagesDir}/photo.gif">

P: n/a
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in the
file source? Is it like a virtual directory in IIS? It's some type of
variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.
Jul 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Was this formerly a php page or something? A php var would look like that
(but without the space after the $). Or maybe a .pl page. It could be
anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in the file source? Is it like a virtual directory in IIS? It's some type of
variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.

Jul 19 '05 #2

P: n/a
YES, I took this out of a PHP page. However, I thought I saw the same type
of thing in an ASP page using VBScript several years ago. Can something
like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
Was this formerly a php page or something? A php var would look like that
(but without the space after the $). Or maybe a .pl page. It could be
anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in

the
file source? Is it like a virtual directory in IIS? It's some type of
variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.


Jul 19 '05 #3

P: n/a
Yes, VB Script supports variables. ;]
Somewhere in some php code, that is defined. It could be in an include
file, in that page, or in the php.ini file. There's isn't an asp.ini file
equivalent, but you can use things like application variables or includes to
include a global value in all of your pages. I guess you could kinda say
that php has one-up here, but it's all in how you look at it. If you define
500 variables in your php.ini, they'll be there for all pages unnecessarily.
This is a similar waste of resources in the way that adovbs.inc is, but at
least with that, you include it when and where you want.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
YES, I took this out of a PHP page. However, I thought I saw the same type of thing in an ASP page using VBScript several years ago. Can something
like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
Was this formerly a php page or something? A php var would look like that (but without the space after the $). Or maybe a .pl page. It could be
anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in
the
file source? Is it like a virtual directory in IIS? It's some type

of variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.



Jul 19 '05 #4

P: n/a
I know about application and session variables, and how to initialize in
global.asa, but is there a way to use VBS variables in this format? {$
someVar}

I thought I saw this before, but I could be wrong.

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...
Yes, VB Script supports variables. ;]
Somewhere in some php code, that is defined. It could be in an include
file, in that page, or in the php.ini file. There's isn't an asp.ini file
equivalent, but you can use things like application variables or includes to include a global value in all of your pages. I guess you could kinda say
that php has one-up here, but it's all in how you look at it. If you define 500 variables in your php.ini, they'll be there for all pages unnecessarily. This is a similar waste of resources in the way that adovbs.inc is, but at
least with that, you include it when and where you want.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
YES, I took this out of a PHP page. However, I thought I saw the same

type
of thing in an ASP page using VBScript several years ago. Can something
like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
Was this formerly a php page or something? A php var would look like that (but without the space after the $). Or maybe a .pl page. It could be anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
> What is this? <img src="{$ ImagesDir}/photo.gif">
>
> I KNOW what an HTML image tag looks like. But what do you call that in the
> file source? Is it like a virtual directory in IIS? It's some type of > variable obviously, but can somebody tell me what it's called so I can > research how it works? thanks.
>
>



Jul 19 '05 #5

P: n/a
>>Can something like this be done in VBScript ASP?

Yes, it might look like this :

<img src="<%= ImagesDir %>/photo.gif">

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
YES, I took this out of a PHP page. However, I thought I saw the same type of thing in an ASP page using VBScript several years ago. Can something
like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OH**************@tk2msftngp13.phx.gbl...
Was this formerly a php page or something? A php var would look like that (but without the space after the $). Or maybe a .pl page. It could be
anything.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in
the
file source? Is it like a virtual directory in IIS? It's some type

of variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.



Jul 19 '05 #6

P: n/a
No. Here's from the VBScript docs:

Naming Restrictions
Variable names follow the standard rules for naming anything in VBScript. A
variable name:

a.. Must begin with an alphabetic character.
b.. Cannot contain an embedded period.
c.. Must not exceed 255 characters.
d.. Must be unique in the scope in which it is declared.
Ray at work
"Eric Bragas" <eb*****@thermage.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I know about application and session variables, and how to initialize in
global.asa, but is there a way to use VBS variables in this format? {$
someVar}

I thought I saw this before, but I could be wrong.

Jul 19 '05 #7

P: n/a
"Eric Bragas" <eb*****@thermage.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I know about application and session variables, and how to initialize in
global.asa, but is there a way to use VBS variables in this format? {$
someVar}

I thought I saw this before, but I could be wrong.
In ASP/VBScript, this would look more like:

<img src="<%=ImagesDir%>/photo.gif">

Hope this helps.

Peter Foti


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...
Yes, VB Script supports variables. ;]
Somewhere in some php code, that is defined. It could be in an include
file, in that page, or in the php.ini file. There's isn't an asp.ini file
equivalent, but you can use things like application variables or includes
to
include a global value in all of your pages. I guess you could kinda

say that php has one-up here, but it's all in how you look at it. If you

define
500 variables in your php.ini, they'll be there for all pages

unnecessarily.
This is a similar waste of resources in the way that adovbs.inc is, but at least with that, you include it when and where you want.

Ray at work

"Eric Bragas" <eb*****@thermage.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
YES, I took this out of a PHP page. However, I thought I saw the same

type
of thing in an ASP page using VBScript several years ago. Can something like this be done in VBScript ASP?

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:OH**************@tk2msftngp13.phx.gbl...
> Was this formerly a php page or something? A php var would look
like that
> (but without the space after the $). Or maybe a .pl page. It could be > anything.
>
> Ray at work
>
> "Eric Bragas" <eb*****@thermage.com> wrote in message
> news:O7**************@tk2msftngp13.phx.gbl...
> > What is this? <img src="{$ ImagesDir}/photo.gif">
> >
> > I KNOW what an HTML image tag looks like. But what do you call
that in
> the
> > file source? Is it like a virtual directory in IIS? It's some
type of
> > variable obviously, but can somebody tell me what it's called so I

can > > research how it works? thanks.
> >
> >
>
>



Jul 19 '05 #8

P: n/a
My guess is that someone generated that page by transforming XML with XSLT,
but had an error in their XSLT somewhere. In XSLT you can declare a
variable and then insert its value where you need it with {$variablename}.
Maybe the space between $ and ImagesDir screwed it up.
"Eric Bragas" <eb*****@thermage.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
What is this? <img src="{$ ImagesDir}/photo.gif">

I KNOW what an HTML image tag looks like. But what do you call that in the file source? Is it like a virtual directory in IIS? It's some type of
variable obviously, but can somebody tell me what it's called so I can
research how it works? thanks.

Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.