Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 11-14-2011, 08:49 PM   #1
Join Date: Nov 2011
Posts: 1
Question php in dreamweaver

I am new to both dreamweaver and PHP. I am creating my first website and I would like to put a PHP code to retreive the day and date. I have already started creating my webpage and want to add this now. I saw at the beginning that I could create a new PHP page but I was wondering if I can insert a php line into my HTML code and if so, how would I do that?
bennettut is offline   Reply With Quote
Old 11-14-2011, 10:35 PM   #2
DWcourse's Avatar
Join Date: Apr 2009
Posts: 3,276

You can insert php code into an existing page just place it inside php tags.

<?php code goes here ?>

However most server set ups require that pages containing php code use the .php file extension. So, if your existing pages use .html you'll need to change them or use this code in your .htaccess file to allow php in html.

AddType application/x-httpd-php .html
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:29 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com