Stuart,
Several thoughts:
You should be able to do this in a <textarea>, very much as Jason has shown. I
don't think you'll run into permission problems, since CF probably already has
the necessary permissions on web content directories.
I'd pass the complete, fully pathed file name into the template and use CFFILE
to read the file contents and place it into the <textarea>. When you post the
form with the changes, use CFFILE to write the new file. Make _sure_ you're
using appropriate locking, both when reading the file and when writing. That's
where you may run into a problem, if IIS or whatever web server has recently
placed a lock on the file.
I'd definitely much rather use FTP and notepad in a pinch than the above, even
if it meant downloading and installing a trial version of some FTP client from
wherever I was.
If you _really_ have to update source files at a moments notice, then your best
bet would be to carry a notebook computer with CF Studio wherever you go, then
update things via FTP through CF.
I'd also give some serious thought to why you'd need to make changes like this
in the first place - In three years of web programming, I've never found myself
in this situation. Nothing has ever been so badly broken that I couldn't wait
until I got home or into the office the next day to fix it.
Jim
-----Original Message-----
From: Kidd, Stuart <[EMAIL PROTECTED]>
To: CF-Server <[EMAIL PROTECTED]>
Date: Tuesday, March 13, 2001 8:16 PM
Subject: RE: Create Directory Script
>Hi Jason,
>
>I copied your text to a file and uploaded it but it's showing errors.
>
>Could you explain where the page is pulling the #url.page#.cfm info from?
>
>Sorry about my CFML knowledge, but I'm a very newbie!
>
>Cheers,
>
>Stuart Kidd
>Communication Team
>Customer Service
>vodafone australia
>[EMAIL PROTECTED]
>
>
>
>-----Original Message-----
>From: Jason [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 14, 2001 12:09 PM
>To: CF-Server
>Subject: RE: Create Directory Script
>
>
>Stuart,
> If you don't mind doing a copy and paste just output the .cfm file
>inside
>of a <TEXTAREA>Info here</TEXTAREA> this will keep all the formatting and
>keep it from processing the template info. You can use this for quick remote
>work (obviously some security implications there)
>
><FORM METHOD="POST" ACTION="test.cfm" enctype="multipart/form-data">
><CFOUTPUT>
><TEXTAREA NAME="This_Page" rows="10" COLS="100"><CFINCLUDE
>TEMPLATE="#URL.PAGE#.CFM"></TEXTAREA>
></CFOUTPUT>
></FORM>
>
>But you could also just setup CFFTP?
>
>-----Original Message-----
>From: Kidd, Stuart [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 13, 2001 4:16 PM
>To: CF-Server
>Subject: RE: Create Directory Script
>
>
>I came across the CFCONTENT tag but unfortunately this has been disabled on
>the server so I can't use that.
>
>Stuart
>
>
>
>-----Original Message-----
>From: Kidd, Stuart [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, March 14, 2001 10:51 AM
>To: CF-Server
>Subject: RE: Create Directory Script
>
>
>Hi guys,
>
>Thanks for that, that was perfect and I've created a little form so I can do
>it from wherever I may be.
>
>Is there also a way to copy a .cfm file from a server to a local machine but
>keeping the CFML code?
>
>e.g.
>If I want to edit a .cfm file for instance I'd like to download it to my
>local machine via a web browser. If I did it the normal way and loaded the
>page I would then lose all the cfml tags as these would have already been
>executed by the CF server.
>
>Perhaps there is a tag that will do the opposite of cffile upload?
>
>Thanks.
>
>
>-----Original Message-----
>From: Herman Cremer [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 13, 2001 5:26 PM
>To: CF-Server
>Subject: RE: Create Directory Script
>
>
>have you tried
>
><CFDIRECTORY ACTION="CREATE" DIRECTORY="C:\your\dir">
>
>Herman
>
>
>
>-----Original Message-----
>From: Kidd, Stuart [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 13, 2001 3:13 AM
>To: CF-Server
>Subject: Create Directory Script
>
>
>Hi guys,
>
>Just wondering if you know whether there is a script somewhere around which
>will create a directory via a browser. I can upload and delete files via
>the browser but thought it would be handy to create a new directory at times
>when i don't have ftp access.
>
>Regards,
>
>Stuart Kidd
>
>
>
>**********************************************************************
>This correspondence is for the named person's use only. It may
>contain confidential or legally privileged information or both.
>No confidentiality or privilege is waived or lost by any
>mistransmission. If you receive this correspondence in error, please
>immediately delete it from your system and notify the sender. You
>must not disclose, copy or rely on any part of this correspondence
>if you are not the intended recipient.
>
>Any views expressed in this message are those of the individual sender,
>except where the sender expressly, and with authority, states them to
>be the views of Vodafone.
>
>This email has been checked for viruses.
>**********************************************************************
>----------------------------------------------------------------------------
>--
>To unsubscribe, send a message to [EMAIL PROTECTED] with
>'unsubscribe' in the body or visit the list page at www.houseoffusion.com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com