⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 032_basic_configuration_file.html

📁 PHP EMAIL FORM PROCESSING Just use php and mysql Follow the instructions as given in the text fil
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/inside.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>PAGETITLE</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/all.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<script language="JavaScript" type="text/JavaScript">
if (self == top) { top.location.replace("index.html");
} else {
parent.window.frames.leftmiddle.location.reload(true);
}
</script>
</head>

<body bgcolor="#FFFFFF" background="images/bg_1200.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><a name="top"></a><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="83%" height="29" bgcolor="#F8F8F8"><img src="images/delimiter.gif" width="19" height="29" border="0" align="absmiddle"><!-- InstanceBeginEditable name="path" -->DESCRIPTION<img src="images/bullet_3.gif" width="4" height="7" hspace="5" border="0"><span class="highlited">Basic Configuration File</span><!-- InstanceEndEditable --></td>
<td width="17%" height="29" align="right" bgcolor="#F8F8F8"><!-- InstanceBeginEditable name="navtop" -->
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F8F8">
<tr>
<td width="19"><img src="images/delimiter.gif" width="19" height="29" border="0"></td>
<td width="34"><a href="031_getting_started.html"><img src="images/nav_back.gif" alt="&lt; back" width="34" height="7" border="0"></a></td>
<td width="21"><img src="images/delimiter_2b.gif" width="1" height="7" hspace="10" vspace="10" border="0"></td>
<td width="55"><a href="033_local_form_configuration_file.html"><img src="images/nav_forward.gif" alt="forward &gt;" width="55" height="7" border="0"></a></td>
<td width="19"><img src="images/1x1.gif" width="19" height="29" border="0"></td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td colspan="2" bgcolor="#CECECE" height="1"><img src="images/1x1.gif" width="1" height="1" border="0"></td>
</tr>
<tr valign="top">
<td height="80%" colspan="2"><table width="100%" border="0" cellspacing="15" cellpadding="0">
<tr>
<td><!-- InstanceBeginEditable name="content" --><span class="highlitedtitle">Basic Configuration File</span><br><br>Basic configuration file for the Form Processor Pro 4.0 is called <strong>formprocessorpro.cfg</strong>. It must be located in the same folder where Perl or PHP executable resides (<strong>formprocessorpro.pl</strong> or <strong>formprocessorpro.php</strong>). This file sets basic variables to make Form Processor Pro 4.0 work correctly. You can disable certain variables by putting &#8216;#&#8217; in the beginning of the line with variable. All symbols put after &#8216;#&#8217; are not treated as data and are mostly used as comments. <br>
<br>

<strong>Variables are listed below:</strong><br>
<br>

<span class="hhorange">base_path</span><br>
Specifies relative or absolute server path to the folder where your forms are placed in. If you have multiple forms in multiple directories, you must specify base_path in each start page of the form (see section <a href="044_form_configuration.html" class="ssilka">FPP Configuration / Form Configuration</a>). If omitted, base_path is the directory where FPP executable resides.<br>
<br>
<u>Examples:</u><br>
base_path = ../form1/ #GOOD, relative path<br>
base_path = /usr/local/form1/ #GOOD, absolute path on Unix<br>
base_path = c:/wwwroot/data/form1/ # GOOD, absolute path on Windows<br>
base_path = http://www.site.org/form1/ #BAD: Path is not an Internet link (URL)!<br>
<br>
<span class="hhorange">mail_cmd</span><br>
Sets the command to send mail via command line mailer. It is the most common way to use this variable to send mail from your web form. In most cases, you should leave it&#8217;s value unchanged.<br>
<br>
<span class="hhorange">mail_server</span><br>
Sets SMTP server for network delivery method. Is an alternative method for sending e-mails from your web form and is commonly used on Windows servers. By commenting this line, mail is being sent using mail_cmd parameters. Default value for mail_server is localhost.<br>
<br>
<span class="hhorange">mail_format</span><br>
Defines format for outgoing email messages. May accept values: html or plain. Default is plain.<br>
<br>
<span class="hhorange">Referers</span><br>
Multiple values. Sets those sites and pages you want to be able to use the Form Processor Pro 4.0 executable. All others will be denied access. You can be very specific on whether only one page has access or general so the whole site can use it.<br>
<br>
To allow any site at all to use the Form Processor Pro 4.0 installed on your site, comment out this value entirely. But it is not recommended as everyone will be able to send emails through your web site and this will be called SPAM. Thus using this variable in right way will allow you to prevent SPAM.<br>
<br>
<u>Example:</u><br>
Referers = www.yoursite.com #your forms on the whole site &#8220;www.yoursite.com&#8221; can use script.<br>
Referers = www.yoursite2.com/users/john #only forms, submitted below the site and directory set, can use the script.<br>
<br>
<span class="hhorange">attachments_path</span><br>
Specifies the path where user uploads and attachments reside. Relative to the folder set in base_path variable. Requires write permission to be set for that folder (see section <a href="024_installation.html" class="ssilka">Installing FPP/Installation/Step 3</a> for more details)<br>
Examples (base_path is set to &#8216;/home/user/&#8217;):<br>
attachments_path = ../attach/ #GOOD, destination folder is /home/attach/.<br>
attachments_path = attachments/ #GOOD, destination folder is /home/user/attachments/.<br>
attachments_path = /home/attach/ #BAD: incorrect path; folder /home/user/home/attach/ doesn&#8217;t exist.<br>
<br>
attachments_ttl<br>
Specifies user attachments&#8217; time-to-live on server, in seconds. Default is 3600 (1 hour).<br>
<br>
<span class="hhorange">max_file_size</span><br>
Specifies maximal file size for upload files, in Kbytes. Default is 0 (unlimited)<br>
Examples:<br>
max_file_size = 1024 #Good, file size is limited to 1 MByte (1 Mbyte = 1024 KBytes)<br>
Max_file_size = -1 #BAD: file size cannot be less than zero.<br>
<br>
<span class="hhorange">date_format</span><br>
Specifies date format used in output templates (e.g. e-mails, logs, result pages etc.). Used in composite variable DATE_GMT (see section <a href="#" class="ssilka">FPP Co/Section #</a>). This variable is constructed from the following patterns to match standards in date output format:<br>
<br>
<table border="0" cellpadding="3" cellspacing="1" bgcolor="#666666">
<tr bgcolor="#FFFFFF">
<td><strong>yyyy</strong></td>
<td>year in 4-digit format (e.g. 2003)</td>
</tr>
<tr bgcolor="#F8F8F8">
<td><strong>yy</strong></td>
<td>year in 2-digit format (e.g. 03)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td><strong>month</strong></td>
<td> full textual representation of a month (e.g. January)</td>
</tr>
<tr bgcolor="#F8F8F8">
<td><strong>mmm</strong></td>
<td>short textual representation of a month, three letters (e.g. Jan)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td><strong>mm</strong></td>
<td>month in 2-digit format (e.g. 01)</td>
</tr>
<tr bgcolor="#F8F8F8">
<td><strong>weekday</strong></td>
<td> full textual representation of a weekday (e.g. Monday)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td><strong>wee</strong></td>
<td>short textual representation of a weekday, three letters (e.g. Mon)</td>
</tr>
<tr bgcolor="#F8F8F8">
<td><strong>dd</strong></td>
<td>day of the month in 2-digit format (e.g. 01)</td>
</tr>
</table>
You may use any ASCII character as a separator between numbers and strings as well.<br><br>
<u>Examples:</u><br>
date_format = dd mmm yyyy # Produces 27 Apr 2003<br>
date_format = wee dd/mm/yy # Produces Sun 27/04/03<br>
date_format = weekday month dd, yyyy #Produces Sunday April 27, 2003<br>
Default value is dd.mm.yyyy<br>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
</tr>
<tr>
<td height="42" align="center" valign="bottom"><!-- InstanceBeginEditable name="navbottom" -->
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="34" valign="top"><a href="031_getting_started.html"><img src="images/nav_back.gif" alt="&lt; back" width="34" height="7" border="0"></a></td>
<td width="21" valign="top"><img src="images/delimiter_2b.gif" width="1" height="7" hspace="10" border="0"></td>
<td width="55" valign="top"><a href="033_local_form_configuration_file.html"><img src="images/nav_forward.gif" alt="forward &gt;" width="55" height="7" border="0"></a></td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
<td height="42">&nbsp;</td>
</tr>
<tr>
<td height="37" align="center" valign="top"><span class="copyright">&copy; 2003 Email-Form.com. All Rights reserved.</span></td>
<td height="37" align="right" valign="top"><a href="#top" target="_self"><img src="images/nav_top.gif" width="75" height="15" border="0"></a></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -