Reply to Re: environment variable as part of a src path

Your name:

Reply:


Posted by Steven on 04/06/06 15:51

On Thu, 06 Apr 2006 08:55:23 +1000, Steven <Phelum@Syd.au> wrote:

>On 5 Apr 2006 15:33:18 -0700, "Glennn" <glenn.meredith@siemens.com>
>wrote:
>><script language="JavaScript" src="%MY_ENV_VAR%\bin\myScript.js"
>>type="text/javascript"></script>
>
>It sounds like you are trying to get code that is running in someone
>else's browser to access something that is internal to your server. I
>don't think this is possible. Maybe you could generate the page using
>PHP and get it to replace the variable before the page is sent.

My thinking here is flawed. I thought the browser would have to resolve
the %MY_ENV_VAR%. I don't think it can but it could send a request with
the variable in the URL and hope the server would resolve it. But I
still don't think it would work.

Could you just put the .js file in a special directory and include the
directory name in the URL ?

--
Steven

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация