This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > December 2005 > Setting up Testing server...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Setting up Testing server...
DerekD

2005-12-28, 10:15 pm

I have just installed Dreamweaver 8 with CF 7. Can somebody give a a link or tell me how to setup the testing server. I am having a lot of problems with it.



Thanks....
DerekD

2005-12-28, 10:15 pm

Some things that might help. I am running Win XP Pro SP 2. I am setting up a
Coldfusion enviorment. On my local system.
Local Info
Local Root Folder: D:\sitename\
Default Images Folder D:\sitename\images\
HTTP Address\ http:\\www.sitename.com
Links relative to site: Site Root
Remote Info
Access: Local / Remote
Remote Folder: c:\CFusionMX7\wwwwroot\sitename\
Testing Server
Server model: Coldfusion
Access: Local / Network
Testing Server Folder: C:\CFusionMX7\wwwroot\sitename\
URL Prefix: http://localhost/sitename/

Then this is what I get:
The site URL Prefix [/sitename] for the testing server does not match the site
URL prefix [ ] Specified in the HTTP Addres for the site.This may cause the
site relative links to display incorrectly at runtime. Proceed anyway?

What am I doning wrong. All of the directories are in the locations above.


Please help. Need to setup a entry form for a database as quick as possible.

Thanks in advance for the help....

DerekD

2005-12-29, 10:17 pm

Can somebody either point me in another direction or give me some pointers...... PLEASE.....
jojo

2005-12-29, 10:18 pm

DerekD wrote:
> Can somebody either point me in another direction or give me some
> pointers...... PLEASE.....


Hi Derek

Have you set this up on IIS or have you installed CF as a stand alone
server?

You have your testing server set within the wwwroot of CFusionMX7, I
would generally set this as the local and testing server, not much point
on maintaining the same site in two locations on your local machine.

When you try to view the site on the testing server what is the address
you see in the address bar of your browser?

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver 8
http://www.webade.co.uk
http://www.cmsforbusiness.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------
jojo

2005-12-29, 10:18 pm

You also need to add the port number if you are in stand alone mode.

URL Prefix: http://localhost/sitename/

The above should likely read http://localhost:8500/sitename/ if You
have previously installed CF then the port number might be 8501.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver 8
http://www.webade.co.uk
http://www.cmsforbusiness.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------
DerekD

2005-12-29, 10:21 pm

Yes I think I have setup IIS or at least tried. When I type localhost in my
browser it goes to a page that says your web server is running. It says "To
add documents to your default Web site, save files in c:\inetpub\wwwroot\. "
Where should I add the port number? If I understand you properly you are
saying to just use (1) location on the hard drive for my site and point my
testing server back to that. I also installed CF7 what do I need to do to set
that up? I went into the Administrator for CF and added my data sources with
no problem but when I try to pull them up in DW 8. no success. Thanks for all
the help so far any other would be greatly appreicated.


Thanks.....

DerekD

2005-12-29, 10:21 pm

Attached is the code for this page I hope somebody can help me. Thanks in advance for the help.
jojo

2005-12-29, 10:21 pm

DerekD wrote:
> Yes I think I have setup IIS or at least tried. When I type localhost in my
> browser it goes to a page that says your web server is running. It says "To
> add documents to your default Web site, save files in c:\inetpub\wwwroot\. "
> Where should I add the port number?


If you have set up on IIS you wont need to add a port number. Set your
sites within the wwwroot of inetpub and use that as your local and
testing server definition.

> If I understand you properly you are
> saying to just use (1) location on the hard drive for my site and point my
> testing server back to that.


Yes, thats the way I set things up.

> I also installed CF7 what do I need to do to set
> that up?


CF7 is a server that install onto IIS or in stand alone mode, it
provides the ability to execute ColdFusion pages.


See if you get up and running then post back.



--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver 8
http://www.webade.co.uk
http://www.cmsforbusiness.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------
DerekD

2005-12-29, 10:21 pm

Forgot the code

<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
<cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "form1">
<cfquery datasource="special" username="Admin">
INSERT INTO Prom_USA (First, Last, Address, City, State, Zip, Phone, Email)
VALUES (
<cfif IsDefined("FORM.First") AND #FORM.First# NEQ "">
'#FORM.First#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.Last") AND #FORM.Last# NEQ "">
'#FORM.Last#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.Address") AND #FORM.Address# NEQ "">
'#FORM.Address#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.City") AND #FORM.City# NEQ "">
'#FORM.City#'
<cfelse>
NULL
</cfif>
<cfif IsDefined("FORM.State") AND #FORM.State# NEQ "">
'#FORM.State#'
<cfelse>
NULL
</cfif>
<cfif IsDefined("FORM.Zip") AND #FORM.Zip# NEQ "">
'#FORM.Zip#'
<cfelse>
NULL
</cfif>
<cfif IsDefined("FORM.Phone") AND #FORM.Phone# NEQ "">
'#FORM.Phone#'
<cfelse>
NULL
</cfif>
,
<cfif IsDefined("FORM.Email") AND #FORM.Email# NEQ "">
'#FORM.Email#'
<cfelse>
NULL
</cfif>
)
</cfquery>
<cflocation url="http://www.promusa.biz">
</cfif><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Prom Dresses Prom Gowns Shoes Handbags Shawls Dresses and Special
Occasion Accessories from PROM USA</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Content-Language" CONTENT="EN-US">
<meta name="KEYWORDS" CONTENT="prom, prom dress, prom dresses, dress, dresses,
special occasion dress, special occasion dresses, prom gown, special, occasion
gown, shoes, prom shoes, prom dress shoes,
special occasion shoes, special occasion dress shoes, handbags, prom handbags,
prom dress handbags, special occasion handbags, shawls, prom shawls, prom dress
shawls, special occasion shawls, accessories,
prom accessories, prom dress accessories, special occasion accessories">
<meta name="description" content="Prom dresses, Prom gowns, shoes, handbags,
shawls and special occasion dress and prom accessories at PROM USA">
<meta name="ROBOTS" content="INDEX, FOLLOW">
<meta name="rating" content="general">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<SCRIPT type="text/javascript"></script>
<SCRIPT type="text/javascript" src="/Navigation/mm_menu.js"></script>
</head>

<body>
<div align="right" class="Addresstxt"><a
href="http://www.promusa.biz/sitemap.htm">Site Map</a></div>
<table width="100%" border="2" cellspacing="2" cellpadding="2">
<tr>
<td><a href="http://www.promusa.biz"><img src="/images/Logo.jpg"
width="360" height="126" border="0" alt="Prom Dresses Prom Gowns Shoes Handbags
Shawls Dresses and Special Occasion Accessories from PROM USA"></a></td>
</tr>
<tr>
<td><div align="center">
<SCRIPT type="text/javascript"
src="/Navigation/mm_menu.js">mmLoadMenus();</script>
<SCRIPT type="text/javascript">mmLoadMenus();</script>
<img name="promusa" src="/Navigation/images/promusa.jpg" width="600"
height="40" border="0" usemap="#m_promusa" alt="Prom Dresses Prom Gowns Shoes
Handbags Shawls Dresses and Special Occasion Accessories from PROM USA">
<map name="m_promusa">
<area shape="rect" coords="482,7,600,32" href="#" alt=""
onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0302015249_0,482,32,null,'promusa');" >
<area shape="poly" coords="0,7,118,7,118,33,0,33,0,7" href="#" alt=""
onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0302001057_0,0,34,null,'promusa');" >
<area shape="poly" coords="362,6,480,6,480,32,362,32,362,6" href="#"
alt="" onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0123160143_0,382,32,null,'promusa');" >
<area shape="poly" coords="118,7,236,7,236,33,118,33,118,7" href="#"
alt="" onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0123155339_2,149,32,null,'promusa');" >
<area shape="poly" coords="118,7,236,7,236,33,118,33,118,7" href="#"
alt="" onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0123155339_2,115,32,null,'promusa');" >
<area shape="poly" coords="239,7,357,7,357,33,239,33,239,7" href="#"
alt="" onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0123155953_1,239,33,null,'promusa');" >
<area shape="poly" coords="238,7,356,7,356,33,238,33,238,7" href="#"
alt="" onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0123155953_1,236,33,null,'promusa');" >
<area shape="poly" coords="0,7,118,7,118,33,0,33,0,7" href="#" alt=""
onMouseOut="MM_startTimeout();"
onMouseOver="MM_showMenu(window.mm_menu_0302001057_0,0,8,null,'promusa');" >
<area shape="rect" coords="363,32,368,33" href="#" alt="" >
</map>
</div></td>
</tr>
<tr>
<td><!-- TemplateBeginEditable name="Body" -->
<div align="center">
<form method="post" name="form1"
action="<cfoutput>#CurrentPage#</cfoutput>">
<table align="center">
<tr valign="baseline">
<td nowrap align="right">First:</td>
<td><input type="text" name="First" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Last:</td>
<td><input type="text" name="Last" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Address:</td>
<td><input type="text" name="Address" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">City:</td>
<td><input type="text" name="City" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">State:</td>
<td><input type="text" name="State" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Zip:</td>
<td><input type="text" name="Zip" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Phone:</td>
<td><input type="text" name="Phone" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Email:</td>
<td><input type="text" name="Email" value="" size="32"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">&nbsp;</td>
<td><input type="submit" value="Insert record"></td>
</tr>
</table>
<input type="hidden" name="MM_InsertRecord" value="form1">
</form>
<p>&nbsp;</p>
</div>
<!-- TemplateEndEditable --></td>
</tr>
</table>

<div align="center">
<p><a class="footer" href="http://www.promusa.biz/Sitemap.htm">Site map</a>
|
<a class="footer" href="http://www.promusa.biz/">Prom Dresses</a> |
<a class="footer" href="http://www.promusa.biz">Bridemaid Dresses</a> |
<a class="footer" href="http://www.promusa.biz">Wedding Dresses</a><br>
<a class="footer" href="http://www.promusa.biz">Pageant Dresses</a> |
<a class="footer" href="http://www.promusa.biz">Closeout</a> |
<a class="footer" href="http://www.promusa.biz">Accessories</a><br>
2080 (Suite G) Fairburn Road Douglasville, Ga 30336<br>
(770) 942-2896 (Phone) (770) 920-2513
(Fax) <a href="mailto:promusa1@aol.com">Contact us</a></p>
</div>
</body>
</html>

DerekD

2005-12-31, 6:16 pm

Yes CF is running. This is what I did tell me if I am missing a step. First I
have gone into CF Administrator I have made a data connection no problem. Then
I go into DW8 under application setting and bring up the database from which I
made the connection in CF Administrator. Then I go to Insert Application
Objects then Insert Record Then Insert Record Wizard. I pull up the data source
and the correct columns I want in my form and I am done. But for some reason
when I go to process that page this is what I get:
But the datasource is there I just pulled it up. PLEASE Somebody HELP
ME!!!!!!!!


Data source Prom could not be found.


The error occurred in D:\inetpub\promusa\Radio_Special.cfm: line 3

1 : <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
2 : <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ
"form1">
3 : <cfquery datasource="Prom">
4 : INSERT INTO Prom (First, Last, Address, City, State, Zip, email)
5 : VALUES (



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews