Deleting a file from your website
numero = 192
interpreted = N
texte =
DELETING a FILEIt is good practice to take this in two steps, starting with an "Are you sure?" type of warning before continuing to the actual delete code.[
deletefile path]Putting [deletefile file=fred] in your template immediately deletes the file called "fred" in the same folder as the template. Paths are relative to the template, so "somefolder/fred" deletes the file down a level from the template inside a folder called "somefolder," while "../fred" deletes the file in the folder one level up from the template.
This operation is undoable!
See also [writefile], [appendfile], [createfolder], [copyfile], [copyfolder], [movefile] and [deletefolder]
DELETING a FILEIt is good practice to take this in two steps, starting with an "Are you sure?" type of warning before continuing to the actual delete code.
[
deletefile path]
Putting [deletefile file=fred] in your template immediately deletes the file called "fred" in the same folder as the template. Paths are relative to the template, so "somefolder/fred" deletes the file down a level from the template inside a folder called "somefolder," while "../fred" deletes the file in the folder one level up from the template.
This operation is undoable!
See also
[writefile],
[appendfile],
[createfolder],
[copyfile],
[copyfolder],
[movefile] and
[deletefolder]
DOWNLOAD WEBDNA NOW!
Top Articles:
Download WebDNA Applications
WebDNA applications...
Technical Change History
This Technical Change History provides a reverse chronological list of WebDNA changes...
WebDNA Modules
A list of the currently available modules...
F.A.Q
A compilation of some user's questions...
WebDNA Libraries
A list of available libraries for WebDNA...
[biotype]
BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...
Related Readings:
[deletefolder]
Deletes a folder from your website...
[xmlparse]
Enable the WebDNA programmer to input XML data into a WebDNA variable...
[formvariables]
Lists all the form variables and parameters passed to the current page...
[loop]
Loops through the enclosing text the specified number of times...
[convertchars]
[url]...
[SQL]
Performs a SQL statement on an ODBC data source...