Create and Publish your Website with Adobe Dreamweaver

The following article explains how to publish your site using Dreamweaver. Dreamweaver is a program developed by Macromedia/Adobe used to create websites. The website is usually created locally first and then published to the web server.

To initially create your website locally, please follow these steps:

Note: This only needs to be done the first time you create your website.

1. Open Dreamweaver on your local machine.

2. From the Site menu select Manage Sites.

3. Click New.

4. Enter a name for your website.

5. Choose if you will be using a server technology like ColdFusion or ASP.NET.

6. Select Edit local copies on my machine.

7. Enter the path to the folder you would like to use to store your website.

8. Click Next.

9. Select FTP as the method used to connect to your remote server.

10. Enter the necessary information:

* Hostname: enter your domain name or IP address

* Folder: this field can be left blank (Windows accounts) or enter htdocs (Linux accounts)

* FTP login: enter your FTP username

* FTP password: enter your FTP password

11. Click Test Connection to ensure Dreamweaver can connect to the server.

12. Click Next.

13. Choose if you wish to enable checking in and checking out of file. This option is recommended if multiple people will be working on the pages in your website.

14. Click Next.

15. Click Done.

To publish your web site, please follow these steps:


How to connect to a MySQL database in PHP, JSP, PERL, COLDFUSION

How do I use a connection string to connect to a MySQL database?

A guide for Linux users.

The following article explains how to use a connection string to connect to a MySQL database. The syntax of the connection string will vary based on the programming language you are using.

Below are sample connection strings for PHP, ColdFusion, Perl and JSP. The code snippets can be added directly to your code.

In the following examples, please substitute your information where the following data is referenced:

* <server>: enter the MySQL server that you are assigned to, for example,
* <username>: enter the username provided for your database
* <password>: enter the password provided for your database
* <database>: enter the database name provided for your database
* <DSN>: enter the DSN name (ColdFusion only)
$link = mysql_connect('<server>', '<username>', '<password>');
if (!$link) {
die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
<CFQUERY Name="test" DATASOURCE="<DSN>" USERNAME="<username>" PASSWORD="<password>">

use DBI;

$db = DBI->connect("dbi:mysql:<database>","<username>","<password>")
or die("Couldn't connect");



How you can send email using Coldfusion and CFmail

How do I use the CFMail tag to send mail from my ColdFusion pages?

The following article explains how to use the CFMail tag. This tag allows you to send email messages through your website. This tag is available for use on all of our shared Coldfusion hosting accounts.

The syntax of the cfmail tag is very simple. Within the tag you add the pertinent information including the to address, the from address, a subject line and the server name. The server name will be localhost. The message of the email is placed between the cfmail tags.

Below is an example of the CFMail tag for versions of ColdFusion starting with ColdFusion 5.0

CFMail tag using Coldfusion 5.0

to =""
from = ""
subject = "Example of CFMail Tag using Coldfusion 5.0"
server = "localhost">

Email Message
CFMail tag using Coldfusion MX 6.1 / 7.0 / 8
to =""
from = ""
subject = "Example of CFMail Tag using Coldfusion"
server = "localhost"
username = ""
password = "password">

Email Message

Coldfusion MX 6.1/CFMX 7/CF 8 allows for SMTP Authentication by use of a username and password. The username and password must be a valid email address from your mail account.

How to use PHP mail to send emails from your website

The following article explains how to use PHP mail to send emails. PHP mail makes use of the mail() function and sends the email based on the parameters specified. Send a Simple Email Message

Below is a sample script for PHP mail:

$to = '';
$subject = 'the subject';
$from = '';
$message = 'hello';

if(mail($to, $subject, $message, "From: $from"))
echo "Mail sent";
echo "Mail send failure - message not sent"; ?>

Email the Results of a Form

To send the results of a form as an email from your website you will need to first create the HTML form. Within the form you will need to set the action to the page containing your PHP mail code. For example:

<form action="phpmailform.php" method="post">

Next, you will need to create the PHP page specified in the action which will contain the PHP mail code.


Dynamic Google Site Map in Coldfusion

Google Site maps are a valuable tool for any website owner, these files create a map for the search engine spider to efficiently navigate your website and update their index with your newest content. This will in turn help improve your overall search performance and ranking. This technology is especially important for dynamic driven websites with consistently updating content such as e-Commerce websites or blogs. Below is an example of some coldfusion code that generates a site map from a simple database structure. I think this will give you all a basic idea of what to do for your websites.


Arizona Website Development by: OSEKmedia, llc
Blog Powered by: BlogCFC, version 5.9.002