This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2005 > HTM to PHP





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 HTM to PHP
Planetearth10

2005-09-08, 7:21 pm

I know how create a new PHP page in Dreamweaver MX. Is there a menu to convert an exist HTML page to PHP.

Thanks.
darrel

2005-09-08, 7:21 pm

> I know how create a new PHP page in Dreamweaver MX. Is there a menu to
convert an exist HTML page to PHP.

Click on the filename. Delete the 'htm'. Replace with 'php'. Done.

-Darrel


mwilliams4

2005-09-30, 3:14 am

That would work with some pages but how about this one:
I have a complete 100 page site that is in HTML.
I want to take a portion of those pages, say 25, and make them PHP pages with
database content.

Site is running currently in HTM, I made a copy of all of the pages I want to
make PHP and saved as the same name as the HTM file, but with the PHP
extension. So, now I have 125 files...are you with me?

I added the correct code and all that, but now, where the pages that will stay
HTM point currently to a HTM file, that will now be a PHP file, how do I get
all those links to resolve?

Currently:
100 pages HTM point to 100 HTM links

New
75 pages HTM point to 75 pages HTM and 25 pages PHP

What do I do?




Gary White

2005-09-30, 3:14 am

On Fri, 30 Sep 2005 03:46:49 +0000 (UTC), "mwilliams4"
<webforumsuser@macromedia.com> wrote:

> Site is running currently in HTM, I made a copy of all of the pages I want to
>make PHP and saved as the same name as the HTM file, but with the PHP
>extension. So, now I have 125 files...are you with me?



You went about it wrong. Don't make a copy of the pages with the .php
extension. Just make a backup of pages somewhere, then re-name the .htm
pages to .php in the DW files panel. Dreamweaver will update the links
for you as long as they aren't buried in a MM javascript menu, or some
other third party javascript.

Gary
mwilliams4

2005-09-30, 3:14 am

I think I will start over and rename my whole site as PHP regardless of whether
it has PHP content or not.
That will take care of all links.
Then I will make a complete copy of all files on the production server to a
new sandbox backup folder
then when I am ready with the sandbox files, I'll just replace the whole site
using the sandbox backup.

Does that sound like a good plan?

robot88888888

2005-09-30, 6:20 pm

It's probably best to change all of them to PHP. You never know when you'll
want to add PHP to one or more of your pages down the road. It doesn't hurt
to serve a pure HTML page as PHP.

If you keep it as a .htm then change down the road, anyone who links to or
bookmarks that page will now have a broken link.


"mwilliams4" <webforumsuser@macromedia.com> wrote in message
news:dhijrm$1qv$1@forums.macromedia.com...
>I think I will start over and rename my whole site as PHP regardless of
>whether
> it has PHP content or not.
> That will take care of all links.
> Then I will make a complete copy of all files on the production server to
> a
> new sandbox backup folder
> then when I am ready with the sandbox files, I'll just replace the whole
> site
> using the sandbox backup.
>
> Does that sound like a good plan?



Gary White

2005-09-30, 6:20 pm

On Fri, 30 Sep 2005 05:52:54 +0000 (UTC), "mwilliams4"
<webforumsuser@macromedia.com> wrote:

> Does that sound like a good plan?



Sounds like it should work.

Gary
Sponsored Links


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