|
|
 |
Re: FN-FORUM Browser updateable "Latest News" script for NT?
date posted 1st May 2001 16:52
yup - if your writing a file or saving a file then you need to have change
permissions for iwam and iuser on that directory. i also wouldnt be doing
that on a cgi-bin directory either. i find it better to have a specific
directory for anything like that per domain, plus if your going to be doing
more than updating, say writing or uploading, then definately keep it out of
the cgi-bin otherwise you could lose control over what modules are there.
hth
dave ecky
David Eckersall
Kinetic North Limited
A member of the Wize Group of companies
Reg Co No 4100142
Reg Office and Business Address
St James House, Wellington Road North
Stockport SK4 2QN
Office Tel - 00 44 161 975 5900
Office Fax - 00 44 161 975 5924
Web - http://www.kineticnorth.com
This communication contains information which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient(s) please note that any form of
distribution, copying or use of this communication or the information in it
is strictly prohibited and may be unlawful. If you have received this
communication in error please return it to the sender. Internet e-mails are
not necessarily secure. Kinetic North Limited does not accept responsibility
for changes made to this message after it was sent. Our messages are checked
for viruses but please note that we do not accept liability for any viruses
which may be transmitted in or with this message.
----- Original Message -----
From: "Paul Fisher" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Cc: [EMAIL REMOVED]
Sent: Tuesday, May 01, 2001 4:39 PM
Subject: RE: FN-FORUM Browser updateable "Latest News" script for NT?
> I've tried these scripts out (and think I've done everything correctly),
but
> I'm getting the following error when I hit the edit button on
edit_news.asp:
>
> Microsoft VBScript runtime error '800a0046'
>
> Permission denied
>
> /cgi-bin/edited_news.asp, line 27
>
> Is this a server permissions problem? I tried putting everything into the
> cgi-bin as a test but it still doesn't work.
>
> Any ideas??
>
> Paul
>
> -----Original Message-----
> From: [EMAIL REMOVED]
> [EMAIL REMOVED] Behalf Of Norman Beresford
> Sent: 26 April 2001 9:44 AM
> To: [EMAIL REMOVED]
> Subject: Re: FN-FORUM Browser updateable "Latest News" script for NT?
>
>
> Hi all
>
> Sorry for my tardiness in posting this but I went to Webcom2k1 yesterday
and
> had to spend the rest of the day recovering from the massively
underwelming
> experience.
>
> I've stuck the files online as a zipfile, rather then posting them here.
I
> have commented the files but I'll do a quick run through now, if enough
> people want a more in depth explanation then I'll do one on a webpage.
>
> www.anansi.co.uk/staff/norman/files/free_news.zip
>
> There are four files in the archive.
>
> frontpage.stm - this is a basic mockup of the front page. The important
bit
> is the include file, this is within tags.
>
> news.inc - this is the actual include file containing the news headlines
> which are to appear on the front page. Each headline is in the form of
> headline. Any changes to this
> format need to be reflected elsewhere in the application
>
> edit_news.asp - this is where most of the work is done. It basiclly
> combines two objects. The FileSystemObject and the Regular Expression
> object.
>
> The FileSystemObject allows us to access and manipulate files located on
the
> server. In our case we're going to open the include file, take all of
it's
> contents out and stick it into a variable called includeText.
>
> Next we use the Regular Expressions powers of VBScript. I'm quite new to
> these and I know that there are better ways to achieve what I was after,
but
> as I don't know them I've used the fudge mentioned later.
>
> What we want to do is get two peices of information from each table row in
> the include file, the headline and the URL of the headline. To do this
> we're going to search through our includeText string using two regular
> expressions:
>
> 42.*?42 is our first expression. Basiclly this is looking for all of
the
> text contained between two double quotes. The results of this search look
> like "url.htm".
>
> Our second expression is 42>.*?. This is looking for all the text
> contained between a "> and , the results look like ">This is our
> headline text
>
> We know that we're going to get four results for each search, but we only
> actually want three, so we'll just ditch the last result by sticking the
> first three results into an array. Next comes the fudge as mentioned
above,
> we use the replace(string, substring1, substring2) function in VBScript to
> remove the additional characters surronding our results. If anyone could
> tell me how to do this in the regular expression I'd be most grateful (I
> think it's something like (?>=42>).*?(?>=) but I can't get that to
> work).
>
> Finally on this page we take our results and use them to populate a form
> which is sent to the browser for display to the client.
>
> The final page is edited_news.asp. This is really a simple form
processing
> page using FileSystemObject to write the results back out to our include
> file.
>
> There are a lot of weakness with this script. I'd suggest running the
> results through a function to strip out quotes and angled brackets before
> writing them to the include file, as this will cause problems for the
> application.
>
> If ppl want any more help with this script then please let me know.
> Similarly, critical feedback is more then welcome. TBH I'd rather do
this
> using a DB
>
> HTH anyway
>
> Norman
>
>
>
>
>
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 1000 freelancers
>
> Freelancers and Freelance Jobs
> http://www.freelancers.net
>
> To post to the Forum:
> [EMAIL REMOVED]
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
> To subscribe to the digest for this list or for further information please
> visit:
> http://www.freelancers.net/forum.html
>
>
>
>
>
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 1000 freelancers
>
> Freelancers and Freelance Jobs
> http://www.freelancers.net
>
> To post to the Forum:
> [EMAIL REMOVED]
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
> To subscribe to the digest for this list or for further information please
visit:
> http://www.freelancers.net/forum.html
|
 |
|