Forums
This topic is locked
Server Behaviors
Posted 26 Dec 2004 05:00:35
1
has voted
26 Dec 2004 05:00:35 Larry Yates posted:
I am using Dreamweaver MX 2004. Everytime I insert a server behavior it changes the extension of my web page. When I insert a visit counter on my index page the page goes from index.html to index.php or whatever the format of the server behavior is. Why does Dreamweaver do this? I had been using Microsoft FrontPage and I am new to Dreamweaver.If anyone can I help, it will be appreciated.
Larry Yates
Larry D. Yates
Replies
Replied 26 Dec 2004 10:35:08
26 Dec 2004 10:35:08 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Everytime I insert a server behavior it changes the extension of my web page. When I insert a visit counter on my index page the page goes from index.html to index.php or whatever the format of the server behavior is. Why does Dreamweaver do this? I had been using Microsoft FrontPage and I am new to Dreamweaver.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Server Behaviors are scripts that are required to run on the server. Remember, HTML is "flat" (static), and ASP/PHP run on the server -> get parsed -> output static HTML.
So Dreamweaver is changing your .html to .php because the Server Behavior(s) you are using place PHP code in your HTML document, hence the extension change.
~~~~~~~~~~~~~~~
Chris Charlton
Sr. Developer - www.fingerprintMedia.com
Server Behaviors are scripts that are required to run on the server. Remember, HTML is "flat" (static), and ASP/PHP run on the server -> get parsed -> output static HTML.
So Dreamweaver is changing your .html to .php because the Server Behavior(s) you are using place PHP code in your HTML document, hence the extension change.
~~~~~~~~~~~~~~~
Chris Charlton
Sr. Developer - www.fingerprintMedia.com
Replied 26 Dec 2004 18:14:01
26 Dec 2004 18:14:01 Larry Yates replied:
Thanks Chris. How do I upload or save the page with the php server behavior to the server to run? That is the problem I am having.
Thanks for your help.
Larry Yates
Larry D. Yates
Thanks for your help.
Larry Yates
Larry D. Yates
Replied 26 Dec 2004 23:44:59
26 Dec 2004 23:44:59 Dave Thomas replied:
you upload a php page the same way you upload an html page.
ftp it to your web server.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]
ftp it to your web server.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]