Welcome to WebmasterWorld Guest from 18.232.53.231

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP Parse With FrontPage

Using PHP with FrontPage

     
3:48 am on Feb 16, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 4, 2002
posts:39
votes: 0


Anyone have any ideas about the easiest way to configure so that my .php files are parsed into .html extensions. In case I've got the terminology incorrect, what I want is to have my .php appear when they are called up with the .html extension.

The added complication in all this is that I use FrontPage, so I can't alter the .htaccess file in my root directory without messing up my Frontpage extensions.

I know that pasrsing these files, but for the time being I can't think of an alternative, since I want to add a php- based timestamp to ALL my HTML pages, which won't be found if I suddenly change them to .php

3:59 am on Feb 16, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 4, 2002
posts:720
votes: 0


so I can't alter the .htaccess file in my root directory without messing up my Frontpage extensions.

Yes you can :)

Just add the lines in your .htaccess file and see it work :)

4:34 am on Feb 16, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 4, 2002
posts:39
votes: 0


Interesting...other sources have said not!

OK, so what lines would I add? :)

5:43 am on Feb 16, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 11, 2003
posts:442
votes: 0


Try this :

AddType application/x-httpd-php .html

7:02 am on Feb 16, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 4, 2002
posts:720
votes: 0


Interesting...other sources have said not!

me :) cuz, I use it.

OK, so what lines would I add? :)

marcs has the right for it :)

10:20 am on Feb 16, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 4, 2002
posts:39
votes: 0


Brill, I'll give it a go!

And if I were going to parse .asp files, would the .htacess file need;

AddType application/x-httpd-asp .html ?

12:11 pm on Feb 16, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Nov 17, 2002
posts:313
votes: 0


erika1959,

If i'm not mistaken - you are using Apache?
On a linux platform? Or windows?

Apache/Linux cannot parse .ASP files - unless you have Chillisoft or similar.
Only windows IIS/PWS can parse .ASP files (properly)

Have a read through these posts for asp & linux:
ASP on Linux [webmasterworld.com]
Chilisoft ASP [webmasterworld.com]
PHP, asp file extensions [webmasterworld.com]

Hope this helps you.

Kindest Regards,
William

9:18 am on Feb 17, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 14, 2002
posts:118
votes: 0


That is, of course, assuming that your server will allow you to do that.

Note that it is generally not a good idea to be passing every .html file as this can take up a lot of unnecessary resources if the majority of your files do not include php code.

Allen

7:01 pm on Feb 20, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Nov 17, 2002
posts:313
votes: 0


erika,

If you wish to Parse .asp files as php, you would need to add the following in your httpd.conf file:

AddType application/x-httpd-php .asp

hope this helps.

8:40 pm on Feb 20, 2003 (gmt 0)

New User

10+ Year Member

joined:Nov 4, 2002
posts:39
votes: 0


Thank you to all who've offered help.

I've beeb diverted off-course by more pressing concerns, but I'll be sorting this out in a day or so.

Thanks once again!