即时编写Html页面 [英] Writing Html Pages on the fly

查看:56
本文介绍了即时编写Html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


有谁能告诉我设置权限的最佳方法,允许ASP

程序将新的Html页面写入我的网站'' s根文件夹,没有

chancing用户也可以写入root。一个ISP告诉我

这无法做到 - IIS真的有限吗?


我希望能够向我的ISP建议(基于在任何建议你可以

给他们如何设置权限,以允许一个合理的文件夹

结构 -


/ mycreatedpage1 .htm

/mycreatedpage2.htm(由...生成)

/myfolderwithwritepermssions/mypagegenerator.asp


目前,我必须将新创建的页面放在与''创建者页面'相同的

''可写''文件夹中,如下所示,这是废话,


/myfolderwithwritepermssions/mypagegenerator.asp

/myfolderwithwritepermssions/mycreatedpage1.htm

/myfolderwithwritepermssions/mycreatedpage2.htm


非常感谢提前


肯尼

Hi all

Can anyone tell me the best way to set permissions to allow an ASP
program to write new Html pages to my site''s root folder, without
chancing users also being able to write to the root. One ISP told me
this couldn''t be done - is IIS really that limited?

I want to be able to suggest to my ISP (based on any advice you can
give) how they should set the permissions to allow a sensible folder
structure -

/mycreatedpage1.htm
/mycreatedpage2.htm ( generated from, say - )
/myfolderwithwritepermssions/mypagegenerator.asp

At the moment, I have to place the newly created pages in the same
''writeable'' folder as the ''creator page'', like below, which is crap,

/myfolderwithwritepermssions/mypagegenerator.asp
/myfolderwithwritepermssions/mycreatedpage1.htm
/myfolderwithwritepermssions/mycreatedpage2.htm

Many thanks in advance

Kenny

推荐答案

这可能更重要政策比技术能力两者均。你需要给互联网用户写入你网站根目录的权限 -

他们可能不想这样做。


" Kenny Ashton" <关于*********** @ ctv.es>在消息中写道

news:nd ******************************** @ 4ax.com ...
That''s probably more a matter of policy than technical capability. You
would have to give the internet user write access to the root of your site -
which they probably don''t want to do.

"Kenny Ashton" <as***********@ctv.es> wrote in message
news:nd********************************@4ax.com...
大家好

任何人都可以告诉我设置权限的最佳方法,让ASP
程序将新的Html页面写入我的网站'' s根文件夹,没有用户也可以写入root用户。一个ISP告诉我
这无法做到 - IIS真的有限吗?

我希望能够向我的ISP建议(基于任何建议你可以
))他们应该如何设置权限以允许一个合理的文件夹结构 -

/mycreatedpage1.htm
/mycreatedpage2.htm(生成,说 - )
/myfolderwithwritepermssions/mypagegenerator.asp
目前,我必须将新创建的页面放在与创建者页面相同的可写文件夹中,如下面,这是垃圾,

/myfolderwithwritepermssions/mypagegenerator.asp
/myfolderwithwritepermssions/mycreatedpage1.htm
/myfolderwithwritepermssions/mycreatedpage2.htm

非常感谢提前

Kenny
Hi all

Can anyone tell me the best way to set permissions to allow an ASP
program to write new Html pages to my site''s root folder, without
chancing users also being able to write to the root. One ISP told me
this couldn''t be done - is IIS really that limited?

I want to be able to suggest to my ISP (based on any advice you can
give) how they should set the permissions to allow a sensible folder
structure -

/mycreatedpage1.htm
/mycreatedpage2.htm ( generated from, say - )
/myfolderwithwritepermssions/mypagegenerator.asp

At the moment, I have to place the newly created pages in the same
''writeable'' folder as the ''creator page'', like below, which is crap,

/myfolderwithwritepermssions/mypagegenerator.asp
/myfolderwithwritepermssions/mycreatedpage1.htm
/myfolderwithwritepermssions/mycreatedpage2.htm

Many thanks in advance

Kenny



我只想问一下 - 这背后的具体需求是什么? (你试图完成什么是
?)虽然我知道你想要创建

HTML页面并将它们保存在服务器上,但我想知道为什么你需要<鉴于.asp的目的是根据需要动态生成HTML

页面,这样做是为了做到这一点。这可能是每次调用.asp页面时创建的页面改变

或每次都几乎保持不变的情况。


Kenny Ashton写道:
I would simply ask - What is the specific NEED behind this? (What are
you trying to accomplish?) While I understand that you want to create
HTML pages and save them on the server, I wonder why you would ever need
to do this given that the purpose of .asp to dynamically generate HTML
pages as needed. This could be something where the pages created change
each time the .asp page is called or pretty much remains the same each time.

Kenny Ashton wrote:
大家好

任何人都可以告诉我设置权限的最佳方法,让ASP
程序将新的Html页面写入我的网站的根文件夹,没有用户也可以写入root用户。一个ISP告诉我
这无法做到 - IIS真的有限吗?

我希望能够向我的ISP建议(基于任何建议你可以
))他们应该如何设置权限以允许一个合理的文件夹结构 -

/mycreatedpage1.htm
/mycreatedpage2.htm(生成,说 - )
/myfolderwithwritepermssions/mypagegenerator.asp
目前,我必须将新创建的页面放在与创建者页面相同的可写文件夹中,如下面,这是垃圾,

/myfolderwithwritepermssions/mypagegenerator.asp
/myfolderwithwritepermssions/mycreatedpage1.htm
/myfolderwithwritepermssions/mycreatedpage2.htm

非常感谢提前

Kenny
Hi all

Can anyone tell me the best way to set permissions to allow an ASP
program to write new Html pages to my site''s root folder, without
chancing users also being able to write to the root. One ISP told me
this couldn''t be done - is IIS really that limited?

I want to be able to suggest to my ISP (based on any advice you can
give) how they should set the permissions to allow a sensible folder
structure -

/mycreatedpage1.htm
/mycreatedpage2.htm ( generated from, say - )
/myfolderwithwritepermssions/mypagegenerator.asp

At the moment, I have to place the newly created pages in the same
''writeable'' folder as the ''creator page'', like below, which is crap,

/myfolderwithwritepermssions/mypagegenerator.asp
/myfolderwithwritepermssions/mycreatedpage1.htm
/myfolderwithwritepermssions/mycreatedpage2.htm

Many thanks in advance

Kenny






您好


谢谢你你的回复家伙,我没有经验丰富,但你好b $ b似乎用问题回答了我的问题。 />

你是说任何''有权限的'现场ASP程序在自己的受保护文件夹中运行

都不能将数据写入任何目标文件夹,

没有给目标文件夹写入权限给其他用户

以及?当然这将是一个荒谬而不合逻辑的安全系统,可以很容易地做出这样的区分。


我想(也许是错误的)我智能地使用ASP

我决定将这些页面基于''很少更改''数据库

内容放到Html页面中。如果数据发生变化,比如在3个月之后,我只需要
运行更新,并且我会在几秒钟内创建新页面。这已经多次保存了我的

培根,因为当我的大多数网站保持在线时数据库

开发变化会引发数据库问题(通常是权限)


我显然不希望在

根文件夹中使用基于ASP的Page Creator程序,相反,我并不是特别想要它所有的页面

写入必须与创建者一样驻留在同一个foldername中 - 谁b / b
会是什么?


我也很不寻常,期待成为能够在我想要的任何目录结构中创建和放置页面

,我想要的任何目录结构,

编程 - 不牺牲安全性。我本以为

这是任何有效文件服务系统的先决条件。


耐心等待我,我是绿色的,并且为什么感到困惑如此多的简单而明显的要求似乎是最困难的。如果你能告诉我你将如何实现这一目标,我将非常感激。


祝你好运


Kenny
Hi

Thank you for your replies guys, I''m not over experienced, but you
seemed to answer my question with questions.

Are you saying that any ''with permissions'' on-site ASP program running
in its own protected folder CANNOT write data to any target folder,
without giving write permissions on the target folder to other users
as well? Surely that would be a ludicrous and illogical security
system, such distinctions can easily be made.

I thought (perhaps mistakenly) that I was using ASP intelligently when
I decided to make those pages based on ''rarely changing'' database
content into Html pages. If data changes, say after 3 months, I just
run an update, and I have new pages within seconds. This has saved my
bacon many times, because most of my site stays online when database
development changes provoke DB problems (usually permissions)

I obviously didn''t want the ASP based ''Page Creator'' program in the
root folder, conversely, I don''t particularly want all the pages it
writes to have to reside in the same foldername as the Creator - who
would?

Am I also unusual, in expecting to be able to create and place pages
anywhere I want, within any directory structure I desire,
programmatically - without sacrificing security. I would have thought
that was a prerequisite for any effective file serving system.

Be patient with me guys, I am green, and perplexed as to why so many
simple and obvious requirements seem the most difficult. If you can
tell me how you would achieve this, I will be most grateful.

Best regards

Kenny
这可能更多的是政策而非技术能力问题。您将不得不让互联网用户对您网站的根目录进行写访问 -
他们可能不想这样做。
我只想问一下 - 这背后的具体需求是什么? (你想要完成什么?)虽然我知道你想要创建
HTML页面并将它们保存在服务器上,但我想知道为什么你需要
来做到这一点.asp的目的是根据需要动态生成HTML页面。这可能是每次调用.asp页面时创建的页面都会发生变化的事情,或者每次都保持相同。
That''s probably more a matter of policy than technical capability. You
would have to give the internet user write access to the root of your site -
which they probably don''t want to do. I would simply ask - What is the specific NEED behind this? (What are
you trying to accomplish?) While I understand that you want to create
HTML pages and save them on the server, I wonder why you would ever need
to do this given that the purpose of .asp to dynamically generate HTML
pages as needed. This could be something where the pages created change
each time the .asp page is called or pretty much remains the same each time.


任何人都可以告诉我设置权限的最佳方式,允许ASP
程序将新的Html页面写入我的网站的根文件夹,而不会让用户也能够写入根。一个ISP告诉我
这无法做到 - IIS真的有限吗?
我希望能够向我的ISP建议(基于你可以给出的任何建议)如何他们应该设置权限以允许合理的文件夹结构 -
Can anyone tell me the best way to set permissions to allow an ASP
program to write new Html pages to my site''s root folder, without
chancing users also being able to write to the root. One ISP told me
this couldn''t be done - is IIS really that limited?
I want to be able to suggest to my ISP (based on any advice you can
give) how they should set the permissions to allow a sensible folder
structure -






这篇关于即时编写Html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆