|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
One nice feature about ColdFusion debugging information is that you can restrict the delivery of the information to a specific set of IP addresses but not to every user. Thus, if you and/or your development team all have fixed IP addresses, you can insert these addresses into the IP Address listing you see in Figure 34.7. That way, your developers will see debugging messages, but regular application users will not.
Using ColdFusion with a Mail ServerYou can send electronic mail messages from your ColdFusion applications after you have ColdFusion configured to work with your mail server. Figure 34.9 shows the Mail portion of the ColdFusion Administrator. Here you can tell the ColdFusion Application Server the name or IP address of your mail server, which server port it should use (typically port 25), and a connect timeout value. You can also verify the connection to your mail server by clicking the Send button under the Verify Mail Server Settings heading on the page.
Setting Up LoggingLike many applications, ColdFusion will log any errors in encounters while processing your templates. Under the Logging section of the ColdFusion Administrator, you can tell ColdFusion the directory where you want the ColdFusion logs stored and provide an email address for the server administrator so that users can mail any error occurrences to the administrator (see Figure 34.10).
You can also log any mail-related errors ColdFusion encounters when composing and sending email messages. You can log mail server messages by their severity (Information, Warning, or Error) and you can choose to log the content of every email that ColdFusion sends.
Restricting File-Related Tags and Using Custom TagsSome CFML tags can manipulate files, and an ill-intentioned user could exploit these tags to upload content to, modify content on, or delete content from your server. To prevent this from happening, you can choose to enable or disable these tags from the Tags section of the ColdFusion Administrator. As you can see in Figure 34.11, you can activate the <CFDIRECTORY>, <CFFILE>, <CFCONTENT>, and <CFOBJECT> tags by checking the box next to each one.
Another of ColdFusions many great features is that you can develop your own tags when existing CFML tags wont do the job. Custom ColdFusion tags can be developed in CFML or in more complicated programming languages such as C++. After you have developed a custom tag, you need to register it with the ColdFusion Administrator. To do this, you enter the tags name in the text field you see under the Registered CFX Tags heading in Figure 34.11 and then click the Add button. You then need to specify a few additional pieces of information, such as the supporting DLL file, procedure, whether to keep the DLL loaded in memory, and a description of the tag.
Setting Up MappingsSometimes its much easier to set up a logical path or alias to a long directory path than type out that path again and again. You can do this through the ColdFusion Administrators Mappings page (see Figure 34.12). To set up a directory mapping, enter the logical path in the first text field, then enter the actual directory path into the second text field and click the Add Mapping button.
Scheduling ColdFusion TemplatesThe ColdFusion Scheduler will submit templates for processing at intervals you specify. This might be useful, for example, when developing a survey application. As part of the application, you could write a daily summary template that looks at the survey entries for a 24-hour period and emails a summary of the days results to the survey administrator. To schedule a template, you first need to go to the Scheduler page of the ColdFusion Administrator. There you type in the name of the task you want to schedule and click the Add New Task button. When you do, youll see a screen similar to the one shown in Figure 34.13. When scheduling the task, you will have to provide information such as
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |