Contact Form Processing Products - for all your needs

FormMail • Form Encryption • Hosted Forms

CSVDIR Setting

This page documents the CSVDIR configuration setting in FormMail.

Type Of Setting

CSVDIR is an OPTIONAL setting, which means...

OPTIONAL : you can change this setting if you need to, but the default value is fine for most circumstances.

Précis

Sets the directory/folder for CSV files.

Description

Set CSVDIR to the directory on your server where CSV files are stored.

When the form provides a 'csvfile' value, formmail.php expects the file to be in this directory. Generally you want this to be outside your server's document root directory. For example, if your server's document root directory is:

/home/yourname/www

use a directory like

/home/yourname/csv

If you don't want to support CSV files, make this an empty string:

$CSVDIR = "";

NOTE: you'll need to create the CSV file on your server and make it writable by the web server software. For security reasons, FormMail cannot do this for you. In general, the correct permissions for your CSV file are: rw-rw-rw-

NOTE: on Windows servers, use '/' instead of '\' or double the '\', like this:

"d:\\path\\to\\csv"

or

"d:/path/to/csv"

Default Value

$CSVDIR = "";

Examples

$CSVDIR = "/home/mysite/csvdir";

See Also

 
Close