HighDots Forums  

HTML to PhP

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss HTML to PhP in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BrianG61
 
Posts: n/a

Default HTML to PhP - 11-12-2004 , 11:41 PM






I've created an HTML site, and am about to add a PHP database. Do I need to rebuild my site from scratch, choosing php instead of html?

Reply With Quote
  #2  
Old   
Alexandru COSTIN
 
Posts: n/a

Default Re: HTML to PhP - 11-13-2004 , 06:03 AM






No,
You can start by changing all files names to .php.

They will work, even if they don't include any dynamic code at all

Alexandru

BrianG61 wrote:
Quote:
I've created an HTML site, and am about to add a PHP database. Do I need to rebuild my site from scratch, choosing php instead of html?

Reply With Quote
  #3  
Old   
Peter Connolly
 
Posts: n/a

Default Re: HTML to PhP - 11-13-2004 , 06:06 AM



BrianG61 wrote:
Quote:
I've created an HTML site, and am about to add a PHP database. Do I
need to rebuild my site from scratch, choosing php instead of html?
No.

As long as your host supports PHP, you're OK.

Any pages which require PHP or access to the database (probably MySQL) in
should have the extension .php; these will then be interpreted correctly.
Pages which don't need PHP can be left as html; everything will work fine
together.

HTH,

Pete.
--
Peter Connolly
http://www.acutecomputing.co.uk
Derby
UK




Reply With Quote
  #4  
Old   
Sonjay
 
Posts: n/a

Default Re: HTML to PhP - 11-13-2004 , 08:32 AM



No, don't change all your page names! Find out from your host if you just
use .htaccess to have your .htm/.html pages parsed as php. Then you don't
have to change anything.

--
Sonjay

On 11/13/04 6:03 AM, "Alexandru COSTIN" wrote:

Quote:
No,
You can start by changing all files names to .php.

They will work, even if they don't include any dynamic code at all

Alexandru

BrianG61 wrote:
I've created an HTML site, and am about to add a PHP database. Do I need to
rebuild my site from scratch, choosing php instead of html?



Reply With Quote
  #5  
Old   
Michael Fesser
 
Posts: n/a

Default Re: HTML to PhP - 11-14-2004 , 12:21 PM



.oO(Alexandru COSTIN)

Quote:
No,
You can start by changing all files names to .php.
"Cool URIs don't change."

Micha


Reply With Quote
Reply




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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.